QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#526711#6132. Repair the ArtworkGuanYunchangWA 2ms3936kbC++172.6kb2024-08-21 19:32:572024-08-21 19:32:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3768kb

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: 2ms
memory: 3936kb

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:

1000000006
1
0
1
1
175723535
937316590
464983629
529664979
999316049
51476
454522145
176
999992231
1
761937742
123067364
311034248
487954758
664208805
27821892
99048460
630722500
830903090
79785727
501075264
922467152
678644592
822300688
471802765
554443932
554436476
81206935
301725113
125152206
773...

result:

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