QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505569#5967. Noisy Neighborsxiaowuc127 ✓2742ms12004kbPython3964b2024-08-05 06:09:492024-08-05 06:09:51

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 12
Accepted

Test #1:

score: 12
Accepted
time: 16ms
memory: 10628kb

input:

100
1 15 0
3 5 2
3 5 12
3 3 5
2 2 0
1 15 6
15 1 15
3 2 2
4 4 16
3 5 8
15 1 7
2 4 8
7 2 13
3 4 9
3 5 3
5 3 9
5 3 5
7 2 14
2 2 4
16 1 16
3 5 14
5 3 0
5 3 3
5 3 11
1 1 0
5 3 6
4 4 9
4 4 1
3 5 7
5 3 7
2 7 3
1 16 0
15 1 1
15 1 8
13 1 10
4 2 5
1 16 1
1 9 6
4 4 0
3 5 6
1 16 16
5 2 7
1 16 7
3 4 12
2 4 1
3 2...

output:

Case #1: 0
Case #2: 0
Case #3: 11
Case #4: 0
Case #5: 0
Case #6: 0
Case #7: 14
Case #8: 0
Case #9: 24
Case #10: 0
Case #11: 0
Case #12: 10
Case #13: 16
Case #14: 7
Case #15: 0
Case #16: 3
Case #17: 0
Case #18: 19
Case #19: 4
Case #20: 15
Case #21: 18
Case #22: 0
Case #23: 0
Case #24: 8
Case #25: 0
C...

result:

ok 100 lines

Subtask #2:

score: 15
Accepted

Test #2:

score: 15
Accepted
time: 2742ms
memory: 12004kb

input:

1000
725 4 2687
7 543 2607
49 41 1468
370 3 871
218 16 2632
41 163 3611
73 3 168
1055 3 2650
2 1469 186
270 3 139
889 4 3352
3 2288 3527
3 2293 6206
3 2089 3782
1 10000 1
111 13 503
1997 5 5756
63 94 5147
5 3 11
9 359 3197
19 352 6471
121 37 2483
100 100 0
130 46 3717
3 5 10
769 2 1324
757 7 4088
3 ...

output:

Case #1: 4219
Case #2: 2276
Case #3: 1764
Case #4: 946
Case #5: 3318
Case #6: 874
Case #7: 173
Case #8: 3212
Case #9: 0
Case #10: 0
Case #11: 5403
Case #12: 283
Case #13: 8770
Case #14: 1943
Case #15: 0
Case #16: 0
Case #17: 2288
Case #18: 8587
Case #19: 8
Case #20: 5958
Case #21: 12137
Case #22: 82...

result:

ok 1000 lines

Extra Test:

score: 0
Extra Test Passed