Code Submission Evaluation System Login

HIIT Open 2018

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

Tasks | Messages | Scoreboard | Statistics


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
Task:Coins
Sender:Oispa nutellaa
Submission time:2018-05-26 12:32:24
Language:C++
Status:READY
Result:WRONG ANSWER

Test results

testverdicttime (s)
#1WRONG ANSWER0.06 / 1.00details
#2WRONG ANSWER0.06 / 1.00details
#3WRONG ANSWER0.06 / 1.00details
#4ACCEPTED0.08 / 1.00details
#5WRONG ANSWER0.05 / 1.00details

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

Verdict: WRONG ANSWER

input
200000
175878 1
146174 1
4939 2
181388 1
...
view   save

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

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

Test 2

Verdict: WRONG ANSWER

input
200000
1 2
2 1
3 2
4 1
...
view   save

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

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

Test 3

Verdict: WRONG ANSWER

input
200000
1 1
2 1
3 1
4 1
...
view   save

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

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

Test 4

Verdict: ACCEPTED

input
200000
1 1
2 1
3 1
4 1
...
view   save

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

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

Test 5

Verdict: WRONG ANSWER

input
200000
188909 2
58944 1
26824 1
143263 2
...
view   save

correct output
<
<
?
<
<
...
view   save

user output
<
<
?
?
?
...
view   save