QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#739938#9735. Japanese Bandsucup-team1623WA 72ms87508kbC++145.0kb2024-11-12 23:59:202024-11-12 23:59:25

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 20ms
memory: 87508kb

input:

3
2 3 3 3
2 3
1 1
2 3
2 2 2 1
1 1
1 1 10 2
1 2
1 3

output:

6
4
0

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 72ms
memory: 86188kb

input:

500
481199252 336470888 8 58
4 7
7 6
4 7
2 6
2 6
2 7
8 3
8 7
8 1
2 6
2 6
1 2
1 5
3 1
6 4
2 4
4 7
2 6
2 3
7 1
4 4
5 1
2 7
6 7
8 1
8 7
5 6
4 2
4 2
8 5
5 4
6 8
5 6
3 8
1 7
1 6
7 1
5 6
6 3
1 1
2 7
3 3
1 5
5 5
8 7
3 4
6 3
8 8
7 4
1 6
2 1
8 7
4 5
2 7
3 5
2 6
4 5
4 3
2 6 2 2
2 1
1 1
500330171 987581927 10 ...

output:

330658531
11
966099120
629942314
528107862
1
245313614
144990327
1
269113412
778117069
1
0
996348464
376698469
453289929
349046884
238565800
838375689
956196844
0
487514263
245223044
8376584
16
300260118
933415828
808801372
1
612901047
137099259
427514365
0
178153606
1
522718622
541668100
1
1
593185...

result:

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