Skip to content

Commit 09a5dac

Browse files
committed
atcoder/abc059B
1 parent 3676a77 commit 09a5dac

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

atcoder/abc059/B/main.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#include <bits/stdc++.h>
2+
3+
using namespace std;
4+
using ll = long long;
5+
6+
int main() {
7+
ios_base::sync_with_stdio(false);
8+
cin.tie(0); cout.tie(0);
9+
10+
string A, B;
11+
cin >> A >> B;
12+
int NA = A.size(), NB = B.size();
13+
14+
if (NA > NB || (NA == NB && A > B)) {
15+
cout << "GREATER" << endl;
16+
} else if (NA < NB || (NA == NB && A < B)) {
17+
cout << "LESS" << endl;
18+
} else {
19+
cout << "EQUAL" << endl;
20+
}
21+
22+
return 0;
23+
}

0 commit comments

Comments
 (0)