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 14:29:43
2018-05-26 14:24:51
2018-05-26 14:24:25
2018-05-26 14:19:25
2018-05-26 14:17:31
2018-05-26 14:12:18
2018-05-26 11:43:13
2018-05-26 11:16:56
2018-05-26 11:10:19
Task:Coins
Sender:El Numero Uno
Submission time:2018-05-26 11:43:13
Language:C++
Status:READY
Result:WRONG ANSWER

Test results

testverdicttime (s)
#1WRONG ANSWER0.31 / 1.00details
#2WRONG ANSWER0.36 / 1.00details
#3WRONG ANSWER0.29 / 1.00details
#4ACCEPTED0.33 / 1.00details
#5WRONG ANSWER0.29 / 1.00details

Code

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

using namespace std;

int main()
{
    int N, c, i;
    int m[3] {0,0,0};
    int n[3] {0,0,0};
    cin >> N;
    for (int _ = 0; _ < N; _++) {
        cin >> c >> i;
        n[i]++;
        m[i] = max(m[i], c);

        if (n[1] != n[2] && !(n[1] == 0 || n[2] == 0)) {
            printf("?\n");
        } else {
            if (m[1] > m[2]) {
                printf(">\n");
            } else if (m[1] < m[2]) {
                printf("<\n");
            } else {
                printf("?\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