QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#680819#25. Counterspells1145141145140 103ms4592kbC++14908b2024-10-26 22:54:262024-10-26 22:54:31

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 4536kb

input:

951
0
0
0
3
3
1
3
4
6
1
8
7
0
11
8
6
11
0
5
16
17
8
2
21
7
18
26
27
16
25
12
26
21
0
24
3
8
34
22
2
5
39
34
23
14
1
13
20
23
20
2
50
7
26
51
9
14
0
36
1
23
21
32
7
1
53
2
5
16
7
24
63
62
19
14
51
67
62
3
70
7
32
11
14
18
52
21
43
15
19
75
64
47
68
94
28
2
20
93
39
76
16
87
2
92
97
54
38
71
52
46
36
...

output:

2
2
2
3
3
3
3
4
4
3
5
4
2
6
5
4
6
2
4
5
7
5
3
8
4
3
4
5
5
5
5
4
8
2
9
3
5
3
6
3
4
7
3
4
7
3
3
6
4
6
3
7
4
4
4
5
7
2
4
3
4
8
5
4
3
5
3
4
5
4
9
6
9
5
7
4
4
9
3
5
4
5
6
7
3
8
8
4
6
5
8
5
4
5
6
6
3
6
5
7
5
5
9
3
6
4
5
4
10
8
4
4
4
6
4
8
7
10
5
5
5
6
4
5
4
6
5
4
7
4
10
5
9
5
4
4
4
4
8
6
6
5
7
5
10
5
9
8
...

result:

wrong answer 1st lines differ - expected: '1', found: '2'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Wrong Answer

Test #22:

score: 0
Wrong Answer
time: 103ms
memory: 4592kb

input:

200000
0
1
2
2
0
3
3
2
0
5
2
9
0
5
2
7
1
12
1
15
11
1
3
14
8
4
11
14
15
29
6
3
20
4
14
26
24
30
9
30
2
25
38
29
12
26
17
28
32
35
14
14
28
0
31
43
36
22
34
45
6
17
29
11
53
45
47
66
29
28
57
22
7
10
61
1
59
61
78
31
26
42
70
44
47
5
43
64
0
73
77
20
30
67
76
7
8
20
82
20
29
69
96
25
22
35
95
42
0
75...

output:

2
3
4
4
2
5
5
4
2
3
4
3
2
3
4
6
3
4
3
5
5
3
5
4
5
5
5
4
5
6
6
5
6
5
4
6
5
7
3
7
4
6
8
6
4
6
4
5
6
5
4
4
5
2
7
9
7
4
6
5
6
4
6
5
6
5
5
6
6
5
8
4
6
4
7
3
7
7
8
7
6
7
6
7
5
3
9
6
2
7
8
6
7
6
4
6
5
6
8
6
6
7
7
6
4
5
5
7
2
8
5
7
5
7
9
6
7
3
6
6
7
6
4
8
6
7
7
7
7
3
3
5
6
6
6
7
5
7
5
6
6
9
6
9
5
5
8
8
7
4
...

result:

wrong answer 1st lines differ - expected: '1', found: '2'

Subtask #5:

score: 0
Skipped

Dependency #1:

0%