题目传送门
1 /*
2 题意:比较型号的大小
3 模拟:坑点在长度可能为5,此时设为'A'
4 */
5 #include <cstdio>
6 #include <algorithm>
7 #include <iostream>
8 #include <cstring>
9 #include <cmath>
10 #include <string>
11 #include <vector>
12 #include <queue>
13 #include <map>
14 #include <set>
15 #include <ctime>
16 #include <cstdlib>
17 using namespace std;
18
19 const int MAXN = 1e4 + 10;
20 const int INF = 0x3f3f3f3f;
21 char s1[10], s2[10];
22
23 char check(void)
24 {
25 for (int i=2; i<=4; ++i)
26 {
27 if (s1[i] < s2[i]) return '<';
28 else if (s1[i] > s2[i]) return '>';
29 }
30
31 if (s1[1] == s2[1])
32 {
33 if (s1[5] == '