QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#307327#3652. Antimatter Rainlmq26052003TL 4ms30556kbC++172.9kb2024-01-18 14:01:512024-01-18 14:01:51

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 29772kb

input:

5 3
1 8
2 3
2 8
5 8
5 9
3 6 6
1 7 4
1 3 1

output:

4
1
4
6
0

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 4ms
memory: 30556kb

input:

6 3
1 2
4 8
5 10
6 10
7 10
8 10
1 1 1
3 4 3
5 7 9

output:

1
3
9
9
9
0

result:

ok 6 lines

Test #3:

score: -100
Time Limit Exceeded

input:

100000 99848
461204923 637745978
730940613 102572682
422553731 879673851
959120803 991859511
66598648 437664322
968838882 853361367
807956510 415715356
293677855 629374884
112400753 480198913
759527413 731879157
888208396 962495575
378888480 976763956
86782568 830961763
104317977 910253192
599817862...

output:


result: