QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#298510#7524. A Challenge For a Touristucup-team1005#WA 2ms8604kbC++204.1kb2024-01-06 12:10:002024-01-06 12:10:01

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 8352kb

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: 2ms
memory: 8604kb

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: 2ms
memory: 8320kb

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:

4
7
-1
-1
4
-1
7
-1
6
-1

result:

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