# HIIT Open 2018

 Start: 2018-05-26 11:00:00 End: 2018-05-26 16:00:00

CSES - HIIT Open 2018 - Results
History
2018-05-26 15:59:15
2018-05-26 15:53:54
2018-05-26 15:51:13
2018-05-26 12:32:24

## Test results

 test verdict time (s) #1 WRONG ANSWER 0.06 / 1.00 details #2 WRONG ANSWER 0.06 / 1.00 details #3 WRONG ANSWER 0.06 / 1.00 details #4 ACCEPTED 0.08 / 1.00 details #5 WRONG ANSWER 0.05 / 1.00 details

## Code

```#include <iostream>

using namespace std;

int n;

int mx[4];
int sz[4];

int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cin >> n;
for (int i = 0; i < n; ++i) {
int c, s;
cin >> c >> s;
sz[s]++;
mx[s] = max(mx[s], c);

if (sz[1] == 0) cout << "<\n";
else if (sz[2] == 0) cout << ">\n";
else if (sz[1] == 1 && mx[2] > mx[1]) {
cout << "<\n";
}
else if (sz[2] == 1 && mx[1] > mx[2]) {
cout << ">\n";
}
else cout << "?\n";
}
return 0;
}
```

## Test details

### Test 1

input
```200000 175878 1 146174 1 4939 2 181388 1 27963 2 28393 1 101955 2 129380 1 53446 1 56883 2 41641 2 52574 1 185690 2 17672 2 187 2 29223 1 116434 2 81263 2 153912 2 ...```
view   save

correct output
```> > > > > > > > > > > > ? ? ? ? ? ? ? ? ...```
view   save

user output
```> > > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ...```
view   save

### Test 2

input
```200000 1 2 2 1 3 2 4 1 5 2 6 1 7 2 8 1 9 2 10 1 11 2 12 1 13 2 14 1 15 2 16 1 17 2 18 1 19 2 ...```
view   save

correct output
```< > < > < > < > < > < > < > < > < > < > ...```
view   save

user output
```< > < ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ...```
view   save

### Test 3

input
```200000 1 1 2 1 3 1 4 1 5 1 6 2 7 2 8 2 9 2 10 2 11 1 12 1 13 1 14 1 15 1 16 2 17 2 18 2 19 2 ...```
view   save

correct output
```> > > > > ? ? ? ? < ? ? ? ? > ? ? ? ? < ...```
view   save

user output
```> > > > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ...```
view   save

### Test 4

Verdict: ACCEPTED

input
```200000 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 ...```
view   save

correct output
```> > > > > > > > > > > > > > > > > > > > ...```
view   save

user output
```> > > > > > > > > > > > > > > > > > > > ...```
view   save

### Test 5

```200000 188909 2 58944 1 26824 1 143263 2 108129 2 170746 1 129857 2 151652 1 92616 1 5122 1 85017 2 133713 2 130510 1 23167 2 55879 2 81852 1 117028 1 185678 1 5335 2 ...```
```< < ? < < < < ? ? ? ? ? ? ? ? ? ? ? ? ? ...```
```< < ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ...```