题目描述
题目简单,注意输出格式即可。
样例
#include <iostream>
using namespace std;
int main()
{
string a, b;
getline(cin, a);
getline(cin, b);
int t = 0, m = a.size()>b.size() ? a.size():b.size();
for(int i = 0; i < m; i++)
{
if(a[i] >= 'a' && a[i] <= 'z') a[i] -= 32;
if(b[i] >= 'a' && b[i] <= 'z') b[i] -= 32;
if(a[i] == b[i])
t++;
else if(a[i] > b[i])
{
cout << ">" << endl;
break;
}
else if(a[i] < b[i])
{
cout << "<" << endl;
break;
}
}
if(t == m) cout << "=" << endl;
return 0;
}