1421 - 古堡算式(2012C/C++本科省赛第2题
时间限制 : 1 秒
内存限制 : 128 MB
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"> 福尔摩斯到某古堡探险,看到门上写着一个奇怪的算式:</span>
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span> </span></span><span style="font-family:Arial;color:black;font-size:28pt;">ABCDE * ? = EDCBA</span>
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span> </span></span><span style="font-family:宋体;color:black;font-size:28pt;">他对华生说:“</span><span style="font-family:Arial;color:black;font-size:28pt;">ABCDE</span><span style="font-family:宋体;color:black;font-size:28pt;">应该代表不同的数字,问号也代表某个数字!”</span>
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span> </span>华生:“我猜也是!”</span>
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span> </span>于是,两人沉默了好久,还是没有算出合适的结果来。</span>
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span> </span>请你利用计算机的优势,找到破解的答案。</span>
<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span> </span>把 </span><span style="font-family:Arial;color:black;font-size:28pt;">ABCDE </span><span style="font-family:宋体;color:black;font-size:28pt;">所代表的数字写出来。</span>
输入
输出
样例
输入
输出
来源
蓝桥杯-历届试题