문제출처 : https://www.acmicpc.net/problem/2908
code
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int A, B, a = 0, b = 0;
cin >> A >> B;
for (int i = 2; i >=0 ; i--)
{
a += A % 10 * (pow(10,i));
b += B % 10 * (pow(10,i));
A /= 10;
B /= 10;
}
if (a > b)
cout << a;
else
cout << b;
return 0;
}