#P7257. [COCI 2009/2010 #3] FILIP
[COCI 2009/2010 #3] FILIP
Description
You are given two positive decimal integers . Output the larger number after reversing these two numbers.
The definition of “reverse” in this problem is explained in the “Hint” section.
Input Format
The first line contains two positive decimal integers .
Output Format
Output the larger number after reversing and .
734 893
437
221 231
132
839 237
938
Hint
Definition of “reverse” in this problem
Suppose the original number has digits: the highest digit is , the second digit is , , and the -th digit is .
Then the reversed number also has digits: the highest digit is , the second digit is , , and the -th digit is .
Constraints
For of the testdata, , and do not contain the digit .
Notes
Translated from COCI 2009-2010 #3 T1 FILIP. Full score is 30 points, 3 points per test case, with 10 test cases in total.
Translated by ChatGPT 5
京公网安备 11011102002149号