题目传送门
题解
- 字符串找一下就行
- 或者。。。python大法好!
AC-Code
#include <bits/stdc++.h>
using namespace std;int main() {
string a, b;while (cin >> a >> b) {
if (a.length() != b.length()) {
cout << (a.length() > b.length() ? ">" : "<") << endl;}else {
bool flag = true;for (unsigned long long i = 0; i < a.length(); ++i) {
if (a[i] != b[i]) {
cout << (a[i] > b[i] ? ">" : "<") << endl;flag = false;break;}}if(flag)cout << "=" << endl;}}
}
a=int(input())
b=int(input())
if a>b :print('>')
elif a==b:print('=')
else :print('<')