首页 > 代码库 > TOJ3067: 求最大值II

TOJ3067: 求最大值II

#include<iostream>
#include<algorithm>
using namespace std;

int main()
{
    int n;
    while (cin >> n)
    {
        while (n--)
        {
            int a, b;
            cin >> a >> b;
            if (a == b)
                cout << "These numbers are equal." << endl;
            else
                cout << max(a,b) << endl;
        }
    }
    return 0;
}

 

TOJ3067: 求最大值II