프로그램 명: coci_filip
제한시간: 1 초
[문제요약] 세자리 수 두 개가 주어질 때 이 수를 뒤집은 수중 어떤수가 큰지를 알아내는 문제이다.
예를 들어 734 와 893 이 주어졌다면
두 수중 437 이 더 크다. 세자리 수는 다르고 0 을 포함하지 않는다.
Mirko has a younger brother, Filip, who just started going to school and is having trouble with
numbers. To help him get the hang for number scale, his teacher writes two three digit numbers. She
asks Filip to compare those numbers, but instead of interpreting them with the leftmost most
significant digit, he needs to interpret them the other way around, with the most significant digit being
the rightmost one. He than has to tell the teacher the larger of the two numbers.
Write a program that will check Filips answers.
입력
The first and only line of input contains two three digit numbers, A and B. A and B will not be equal
and will not contain any zeroes.
출력
First and only line of output should contain the larger of the numbers in the input, compared as
described in the task. The number should be written reversed, to display to Filip how he should
read it.
입출력 예
input
734 893
output
437
input
221 231
output
132
input
839 237
output
938
출처: COCI 2009/2010 contest3 1/6
[질/답]
[제출 현황]
[푼 후(2)]