QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#748547#892. Minimal Cutdongyc666RE 3ms17940kbC++144.4kb2024-11-14 20:40:372024-11-14 20:40:39

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 17940kb

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:

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

result: