QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#264879#6132. Repair the Artworkucup-team293#WA 3ms9624kbC++171.5kb2023-11-25 15:49:162023-11-25 15:49:16

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3392kb

input:

3
2 2
2 0
3 2
2 1 0
3 1
2 1 0

output:

8
3
1

result:

ok 3 number(s): "8 3 1"

Test #2:

score: -100
Wrong Answer
time: 3ms
memory: 9624kb

input:

100
2 1
0 1
2 1
2 1
2 1
1 1
1 6
2
1 14
2
3 12
2 2 2
6 13
2 2 0 2 0 2
7 14
0 0 0 0 2 2 0
5 8
2 2 0 0 0
5 5
2 2 0 0 0
12 3
0 2 0 2 2 0 1 2 2 2 2 0
7 11
2 2 0 1 0 1 0
4 4
2 1 2 2
7 5
1 1 0 0 1 0 0
2 14
2 1
15 17
2 2 1 2 0 0 0 0 2 0 1 0 0 0 0
15 11
1 1 2 0 1 2 0 0 1 0 2 1 1 1 1
15 18
1 0 1 0 2 2 1 2 0 1...

output:

-1
1
0
1
1
175715347
-833406719
-467966815
-458805426
-650344
2208
-537089254
146
-7776
1
-703335050
123067364
-355668256
487954758
53774922
-544070885
436748805
-369291507
760487845
-513270785
501075264
487417783
-464534262
979007529
137956839
143317512
-648268264
-851188473
702545117
-946416372
59...

result:

wrong answer 1st numbers differ - expected: '1', found: '-1'