QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#397020#2849. 弗雷兹的玩具商店Nothing to lose anymore (Guoxin Rui, Bingde Ma, Long Lu)RE 0ms5716kbC++984.7kb2024-04-23 15:36:352024-04-23 15:36:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 5716kb

input:

4 10
1 6 10 2
100 2333 666 300
7
3 1 4
3 1 3
1 2 4 1
3 1 4
2 2 3 -1000
2 2 3 -600
3 2 4

output:

15165 2865
14165 2169
36630 798
4899 1273

result:

ok 4 lines

Test #2:

score: -100
Runtime Error

input:

200000 60
21 16 58 5 26 44 30 40 31 27 50 21 59 50 37 39 26 9 15 14 9 59 40 29 32 5 2 25 57 18 4 9 25 1 13 42 36 34 21 6 53 2 18 51 51 55 29 17 3 36 22 11 26 1 40 58 57 33 22 53 42 26 1 6 18 6 47 54 31 59 51 23 60 1 13 43 55 34 59 49 9 12 51 34 4 22 31 1 47 45 45 28 10 38 34 19 35 12 4 5 11 47 28 2 ...

output:

304478979 5965183
302725180 6346266
263891804 12270170
206665590 7376160
224382953 12593417
302401755 6812441
298016030 8641780
187482000 7499280
276545273 13399743
302685395 8377169
304366932 5940254
296905642 9746668
273952510 11264178
185846328 1238664
276341256 13586262
200917902 49664
84263735 ...

result: