UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#91575#1419. 二叉苹果树wlzhouzhuan1000ms1236kbC++111.1kb2020-02-15 18:16:442020-02-15 18:16:46

answer


详细

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

Test #1:

score: 7
Accepted
time: 0ms
memory: 1152kb

input:

5 3
1 2 0
1 5 1
5 3 100
5 4 1

output:

102

result:

ok single line: '102'

Test #2:

score: 7
Accepted
time: 0ms
memory: 1228kb

input:

99 12
1 39 0
1 79 0
2 58 1
2 89 0
4 7 0
4 32 0
5 9 0
5 75 0
6 42 0
6 52 0
10 29 0
10 67 0
12 16 0
12...

output:

112

result:

ok single line: '112'

Test #3:

score: 7
Accepted
time: 0ms
memory: 1232kb

input:

99 5
1 16 1
1 77 23432
2 15 16141
2 56 0
3 40 14230
3 55 1
6 75 26728
6 89 19411
9 25 6044
9 86 2247...

output:

39169

result:

ok single line: '39169'

Test #4:

score: 7
Accepted
time: 0ms
memory: 1232kb

input:

99 55
1 25 0
1 45 0
6 9 12291
6 57 23430
7 73 0
7 90 18716
8 87 15667
8 98 21176
9 36 26817
9 46 136...

output:

947961

result:

ok single line: '947961'

Test #5:

score: 7
Accepted
time: 0ms
memory: 1236kb

input:

99 9
1 20 0
1 90 0
2 70 0
2 88 0
3 34 0
3 45 0
5 15 0
5 28 0
6 48 0
6 75 0
10 18 0
10 79 0
11 19 0
1...

output:

0

result:

ok single line: '0'

Test #6:

score: 7
Accepted
time: 0ms
memory: 1160kb

input:

11 7
10 3 5
1 9 3
1 8 1
2 11 5
3 2 1
3 7 34
2 4 5
8 10 25
8 6 20
10 5 1

output:

91

result:

ok single line: '91'

Test #7:

score: 7
Accepted
time: 0ms
memory: 1156kb

input:

11 8
1 2 6492
1 3 21026
2 8 26314
2 10 7655
3 6 29359
3 7 9617
6 5 7978
6 9 23373
7 4 10331
7 11 29716

output:

156228

result:

ok single line: '156228'

Test #8:

score: 7
Accepted
time: 0ms
memory: 1176kb

input:

39 29
1 8 22533
1 11 764
2 4 27438
2 32 24738
4 10 28931
4 18 23233
6 2 29711
6 28 11645
9 21 343
9 ...

output:

489453

result:

ok single line: '489453'

Test #9:

score: 7
Accepted
time: 0ms
memory: 1180kb

input:

49 12
1 23 14890
1 46 3345
2 12 1181
2 47 16488
3 45 10690
3 49 19914
8 6 747
8 38 19698
9 2 17911
9...

output:

211665

result:

ok single line: '211665'

Test #10:

score: 7
Accepted
time: 0ms
memory: 1188kb

input:

51 11
1 37 1623
2 9 15474
2 32 22575
5 6 5985
5 28 24713
11 23 19472
11 47 7334
6 18 16218
14 11 819...

output:

213587

result:

ok single line: '213587'

Test #11:

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

input:

59 20
16 31 4344
13 37 21815
4 26 15614
4 27 1573
1 47 5204
5 8 3334
6 20 16153
5 6 19493
9 18 23687...

output:

285857

result:

ok single line: '285857'

Test #12:

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

input:

61 34
1 9 19292
1 58 7615
4 15 17497
4 53 8817
5 39 7134
5 50 4918
9 25 24002
9 26 4256
13 3 17681
1...

output:

578234

result:

ok single line: '578234'

Test #13:

score: 7
Accepted
time: 0ms
memory: 1208kb

input:

71 1
1 12 0
1 46 0
3 58 0
3 63 0
7 14 526
7 28 0
9 22 0
9 66 21887
16 8 0
16 55 0
18 35 0
18 59 2976...

output:

0

result:

ok single line: '0'