UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#88976#1554. 食物链zwr123456100238ms1776kbC++979b2020-02-13 20:14:082020-02-13 20:14:11

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

80 300
1 38 13
2 9 34
2 62 52
2 64 74
2 80 18
2 31 14
2 23 22
2 41 30
2 60 12
2 80 81
2 18 35
1 53 7...

output:

154

result:

ok single line: '154'

Test #2:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

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

output:

9

result:

ok single line: '9'

Test #3:

score: 10
Accepted
time: 34ms
memory: 1220kb

input:

2000 50000
1 1805 1220
1 1608 1681
2 522 456
2 1224 989
2 1846 554
2 1669 1328
2 1683 1562
2 1286 36...

output:

2310

result:

ok single line: '2310'

Test #4:

score: 10
Accepted
time: 8ms
memory: 1208kb

input:

1000 10000
1 607 607
1 587 192
1 15 324
2 890 857
1 110 79
1 495 757
2 149 661
2 373 370
2 488 164
1...

output:

781

result:

ok single line: '781'

Test #5:

score: 10
Accepted
time: 0ms
memory: 1200kb

input:

400 6000
2 214 343
1 217 161
1 301 359
2 6 304
1 315 182
1 390 345
1 98 387
1 172 67
2 157 237
2 215...

output:

1988

result:

ok single line: '1988'

Test #6:

score: 10
Accepted
time: 1ms
memory: 1200kb

input:

160 3000
1 127 88
1 37 112
2 130 95
1 94 137
2 32 79
1 150 89
2 32 122
2 25 119
2 43 155
1 157 54
1 ...

output:

1804

result:

ok single line: '1804'

Test #7:

score: 10
Accepted
time: 65ms
memory: 1228kb

input:

3000 80000
2 2593 1652
2 1934 339
2 2800 1605
1 2214 1212
2 1659 2576
2 1174 1694
2 2340 1568
2 1473...

output:

2635

result:

ok single line: '2635'

Test #8:

score: 10
Accepted
time: 77ms
memory: 1264kb

input:

6000 100000
2 4625 862
2 2788 4751
2 1580 1618
2 259 5130
2 5878 2956
2 1469 3285
2 5134 258
2 2723 ...

output:

1322

result:

ok single line: '1322'

Test #9:

score: 10
Accepted
time: 53ms
memory: 1776kb

input:

49152 65535
2 1 2
2 2 3
2 3 1
2 4 5
2 5 6
2 6 4
2 7 8
2 8 9
2 9 7
2 10 11
2 11 12
2 12 10
2 13 14
2 ...

output:

71

result:

ok single line: '71'

Test #10:

score: 10
Accepted
time: 0ms
memory: 1196kb

input:

100 7
1 101 1
2 1 2
2 2 3
2 3 3
1 1 3
2 3 1
1 5 5

output:

3

result:

ok single line: '3'