1421 - 古堡算式(2012C/C++本科省赛第2题

通过次数

0

提交次数

0

Time Limit : 1 秒
Memory Limit : 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>&nbsp;&nbsp;&nbsp; </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>&nbsp;&nbsp;&nbsp; </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>&nbsp;&nbsp;&nbsp; </span>华生:“我猜也是!”</span>

<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span>&nbsp;&nbsp;&nbsp; </span>于是,两人沉默了好久,还是没有算出合适的结果来。</span>

<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span>&nbsp;&nbsp;&nbsp; </span>请你利用计算机的优势,找到破解的答案。</span>

<span style="font-size:28pt;"><span>•</span></span><span style="font-family:Arial;color:black;font-size:28pt;"><span>&nbsp;&nbsp;&nbsp; </span>把 </span><span style="font-family:Arial;color:black;font-size:28pt;">ABCDE </span><span style="font-family:宋体;color:black;font-size:28pt;">所代表的数字写出来。</span>

Input

Output

Examples

Input


                            

Output


                            

Source

蓝桥杯-历届试题