QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505446#5837. Rope Intranetxiaowuc122 ✓403ms10736kbPython3356b2024-08-05 05:24:452024-08-05 05:24:46

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 9
Accepted

Test #1:

score: 9
Accepted
time: 8ms
memory: 10648kb

input:

15
2
1 1
2 2
1
6 1
2
3 2
2 1
2
2 9
7 7
2
4 4
3 8
1
257 458
2
172 273
171 272
2
479 120
381 274
2
429 273
154 66
2
268 32
349 293
1
6101 4729
2
7263 8481
7262 8480
2
874 9245
7717 3695
2
5488 5430
3469 1507
2
2256 8501
40 172

output:

Case #1: 0
Case #2: 0
Case #3: 0
Case #4: 1
Case #5: 1
Case #6: 0
Case #7: 0
Case #8: 1
Case #9: 0
Case #10: 0
Case #11: 0
Case #12: 0
Case #13: 1
Case #14: 0
Case #15: 0

result:

ok 15 lines

Subtask #2:

score: 13
Accepted

Test #2:

score: 13
Accepted
time: 403ms
memory: 10736kb

input:

15
3
1 10
7 7
5 5
2
1 1
2 2
904
9015 4469
5478 5390
1381 682
1218 7666
2568 743
5760 9362
300 1290
6031 7504
1252 3096
6116 436
3410 9988
8377 4033
5743 5245
4595 1839
6730 5077
9998 7594
2301 3735
822 210
2966 60
5942 3781
6090 8816
1683 1219
652 935
2719 734
3528 9508
7636 7285
9050 5708
1938 4304...

output:

Case #1: 2
Case #2: 0
Case #3: 198502
Case #4: 0
Case #5: 245659
Case #6: 245513
Case #7: 245768
Case #8: 0
Case #9: 210222
Case #10: 203852
Case #11: 231134
Case #12: 243049
Case #13: 221841
Case #14: 0
Case #15: 0

result:

ok 15 lines

Extra Test:

score: 0
Extra Test Passed