QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#307325#3652. Antimatter Rainlmq26052003TL 4ms30528kbC++172.8kb2024-01-18 14:00:472024-01-18 14:00:48

详细

Test #1:

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

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: 0ms
memory: 30528kb

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: