-
Notifications
You must be signed in to change notification settings - Fork 501
Expand file tree
/
Copy path(CODEFORCES)1741A.cpp
More file actions
57 lines (44 loc) · 1.08 KB
/
(CODEFORCES)1741A.cpp
File metadata and controls
57 lines (44 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <bits/stdc++.h>
#include <stdio.h>
#include <algorithm>
#define int long long int
#define INF 1e14
#define pb(n) emplace_back(n)
#define yes "YES"
#define no "NO"
#define all(x) x.begin(), x.end()
using namespace std;
const unsigned long long M = 1000000007;
const char nl = '\n';
const char sp = ' ';
void solve() {
string a, b;
cin >> a >> b;
if (a[a.size() - 1] == b[b.size() - 1]) {
if (a.size() == b.size()) {
cout << "=" << nl;
} else if (a[a.size() - 1] == 'S') {
if (a.size() < b.size()) {
cout << ">" << nl;
} else cout << '<' << nl;
} else {
if (a.size() < b.size()) cout << "<" << nl;
else cout << ">" << nl;
}
} else {
if (a[a.size() - 1] < b[b.size() - 1]) cout << '>' << nl;
else cout << '<' << nl;
}
}
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int T = 1;
cin >> T;
for (int tc = 1; tc <= T; tc++) {
//cout << "Case #" << tc << ": ";
solve();
}
return 0;
}