QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#455449#105. Simple gameMaMengQi0 38ms9812kbC++232.3kb2024-06-26 14:20:332024-06-26 14:20:33

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 22
Accepted
time: 1ms
memory: 7656kb

input:

3 3
1 5 1
2 3
1 1 5
2 3

output:

2
1

result:

ok 2 lines

Test #2:

score: -22
Runtime Error

input:

1000 1000
403944 539844 451514 488113 693733 651613 563358 916918 605393 909558 657949 170748 659971 389016 826009 517990 412996 904989 357541 151208 802899 615350 245323 574670 586084 779493 509446 634227 113180 158403 598536 396554 496919 395067 849333 498457 288483 246925 615590 137465 97346 5881...

output:


result:


Subtask #2:

score: 0
Runtime Error

Test #8:

score: 27
Accepted
time: 38ms
memory: 9812kb

input:

100000 100000
18 15 8 5 7 19 19 11 11 8 6 15 11 8 15 12 6 16 18 18 16 17 20 18 18 17 15 5 8 8 18 6 18 20 14 19 19 5 9 16 5 17 15 19 20 17 12 9 14 18 19 16 9 6 10 11 13 16 12 18 6 12 6 15 19 20 10 17 10 12 15 13 18 7 14 8 7 15 7 14 9 17 10 15 13 14 15 12 11 12 14 14 14 19 7 16 7 17 12 16 11 6 18 18 1...

output:

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 100000 lines

Test #9:

score: -27
Runtime Error

input:

100000 100000
611680 625326 848926 304761 34686 696982 275897 392063 769779 97648 477956 908326 678227 975305 324587 445989 114055 568928 232496 23720 819209 270123 89065 357324 169130 404179 130496 333348 773133 109363 144114 336567 194409 437469 655441 966463 892042 498325 192834 391531 219600 734...

output:


result:


Subtask #3:

score: 0
Skipped

Dependency #1:

0%