CSES - HIIT Open 2018 - Results
Submission details
Task:Coins
Sender:El Numero Uno
Submission time:2018-05-26 11:16:56 +0300
Language:C++
Status:READY
Result:
Test results
testverdicttime
#10.30 sdetails
#20.31 sdetails
#30.33 sdetails
#40.34 sdetails
#50.31 sdetails

Code

#include <iostream>
#include "stdio.h"

using namespace std;

int main()
{
    int N, c, i;
    int arr[3] {0,0,0};
    cin >> N;
    for (int _ = 0; _ < N; _++) {
        cin >> c >> i;
        arr[i] += c;
        if (arr[1] < arr[2]) {
            printf("<\n");
        } else if (arr[1] > arr[2]) {
            printf(">\n");
        } else {
            printf("?\n");
        }
    }
    return 0;
}

Test details

Test 1

Verdict:

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

correct output
>
>
>
>
>
...

user output
>
>
>
>
>
...

Test 2

Verdict:

input
200000
1 2
2 1
3 2
4 1
...

correct output
<
>
<
>
<
...

user output
<
>
<
>
<
...

Test 3

Verdict:

input
200000
1 1
2 1
3 1
4 1
...

correct output
>
>
>
>
>
...

user output
>
>
>
>
>
...

Test 4

Verdict:

input
200000
1 1
2 1
3 1
4 1
...

correct output
>
>
>
>
>
...

user output
>
>
>
>
>
...

Test 5

Verdict:

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

correct output
<
<
?
<
<
...

user output
<
<
<
<
<
...