문제
Author: Filip Barl 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.
예제 입력 1
734 893
예제 출력 1
437
예제 입력 2
221 231
예제 출력 2
132
예제 입력 3
839 237
예제 출력 3
938
코드를 제출하려면 로그인이 필요합니다.
로그인| # | 순위 | 사용자 | 언어 | 시간 | 메모리 | 코드 길이 | |
|---|---|---|---|---|---|---|---|
| 5703 | 🥇 | 안우진 | Python | 7ms | 8380KB | 59B | |
| 8723 | 🥈 | 고수아 | Python | 8ms | 8452KB | 249B |