QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#315746#7245. Frank SinatraMaMengQiWA 2ms5948kbC++232.5kb2024-01-27 15:37:302024-01-27 15:37:32

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 5948kb

input:

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

output:

0
1
2
2
3
3

result:

ok 6 numbers

Test #2:

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

input:

2 4
1 2 0
1 1
1 2
2 1
2 2

output:

0
1
1
0

result:

ok 4 number(s): "0 1 1 0"

Test #3:

score: -100
Wrong Answer
time: 2ms
memory: 5912kb

input:

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

output:

0
2
2
2
0
2
1
2
0
1
2
2
2
2
2
2
2
2
2
1
2
2
2
2
2
2
1
0
2
2
2
2
0
2
0
2
2
2
2
2
2
2
0
2
2
2
2
2
0
2
2
2
2
2
0
2
2
2
0
2
2
2
2
2
1
2
2
0
2
0
2
2
2
1
0
2
2
2
2
2
2
0
2
2
2
0
2
0
2
1
2
0
2
2
1
2
2
2
2
2

result:

wrong answer 4th numbers differ - expected: '0', found: '2'