QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#307856#7524. A Challenge For a Touristucup-team2880#WA 3ms13860kbC++203.1kb2024-01-19 10:44:502024-01-19 10:44:50

詳細信息

Test #1:

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

input:

6 6
5 6 3
6 2 2
1 2 1
2 3 2
2 4 3
4 5 4
3
1 3 1
1 3 3
1 3 5

output:

-1
2
4

result:

ok 3 number(s): "-1 2 4"

Test #2:

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

input:

2 1
1 2 1
1
1 2 1

output:

1

result:

ok 1 number(s): "1"

Test #3:

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

input:

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

output:

3
4
-1
-1
4
-1
4
-1
5
-1

result:

wrong answer 1st numbers differ - expected: '2', found: '3'