QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#47630#4649. ApplesHuangHanShengAC ✓1627ms34980kbC++141.5kb2022-09-10 15:17:282022-09-10 15:17:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1627ms
memory: 34980kb

input:

100
4
4 1 4
5 1 4
1 9 1
9 8 1
0
2
1 2 1
2 1 2
3
1 3
1 2
2 1
5
9 19 8
37 9 4
19 30 6
0 37 1
30 0 0
10
4 1
4 1
3 4
2 6
5 10
4 4
2 10
5 9
1 0
3 6
5
7 49 6
9 7 1
49 9 0
24 24 6
4 4 2
10
1 8
4 10
1 3
5 0
2 5
3 3
2 4
1 6
2 3
5 4
5
1 1 3
3 47 2
47 41 9
37 3 3
41 37 10
10
3 4
1 9
4 10
1 7
4 1
4 3
3 5
2 8
4 ...

output:

23
1
2
2
1
217
217
217
200
239
246
336
408
408
321
321
292
336
376
166
166
326
326
286
412
372
372
438
252
252
280
280
244
252
290
554
546
558
1332
1274
1239
1209
1272
1277
1217
1177
1045
1129
590
174
691063470909
276752159937
1175895856089
1216670336199
994796748321
1008162887910
18793628
18791624
...

result:

ok 2000089 lines