QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#748554#892. Minimal Cutdongyc666RE 0ms16912kbC++144.4kb2024-11-14 20:41:312024-11-14 20:41:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 2
1 3 2
2 4 2

output:

21067776

result:

ok "21067776"

Test #2:

score: -100
Runtime Error

input:

79 190
24 30 8372
16 17 3623
47 43 577
47 45 10000
50 49 9644
35 25 882
23 24 1994
54 55 7778
32 33 230
52 53 6078
5 10 8214
25 26 6829
21 22 340
67 68 6066
10 1 8104
9 10 3085
44 43 5659
33 34 5505
7 10 337
12 13 3804
5 1 4735
25 28 6650
61 60 9290
14 6 9857
38 35 6228
48 49 3076
60 59 4972
54 52 4...

output:

13214 79 78
l:1 r:79 x:78 y:79 val:13214
5836 78 77
l:1 r:78 x:77 y:78 val:5836
194 77 47
l:1 r:77 x:47 y:77 val:194
485 47 14
l:1 r:47 x:14 y:47 val:485
22480 14 13
l:1 r:14 x:13 y:14 val:22480
10892 0 0
l:1 r:13 x:0 y:0 val:10892
1000000000000000000 0 0
l:1 r:0 x:0 y:0 val:1000000000000000000
1000...

result: