QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#419967#4216. Funny Salesmanegypt_ioi2024_07WA 1ms3644kbC++23641b2024-05-24 13:22:142024-05-24 13:22:16

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3576kb

input:

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

output:

6

result:

ok 1 number(s): "6"

Test #2:

score: 0
Accepted
time: 0ms
memory: 3644kb

input:

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

output:

42

result:

ok 1 number(s): "42"

Test #3:

score: 0
Accepted
time: 0ms
memory: 3520kb

input:

2
2 1 20

output:

1048576

result:

ok 1 number(s): "1048576"

Test #4:

score: 0
Accepted
time: 0ms
memory: 3576kb

input:

5
4 2 25
5 4 0
5 3 16
5 1 28

output:

603979776

result:

ok 1 number(s): "603979776"

Test #5:

score: 0
Accepted
time: 0ms
memory: 3640kb

input:

8
3 2 2
3 4 27
6 3 2
1 6 9
5 7 24
8 5 23
8 1 3

output:

318767616

result:

ok 1 number(s): "318767616"

Test #6:

score: -100
Wrong Answer
time: 0ms
memory: 3612kb

input:

4
1 2 6
4 1 26
4 3 10

output:

134218752

result:

wrong answer 1st numbers differ - expected: '201326592', found: '134218752'