QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#122475#6543. Visiting FriendZhaoZiLongWA 9ms32788kbC++203.2kb2023-07-10 16:08:242023-07-10 16:08:25

详细

Test #1:

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

input:

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

output:

2
4
3
3
5

result:

ok 5 number(s): "2 4 3 3 5"

Test #2:

score: -100
Wrong Answer
time: 9ms
memory: 32252kb

input:

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

output:

10
10
10
10
10
10
10
10
10
10
10
11
10
10
11
10
11
11
10
11
10
10
10
10
10
10
10
10
10
11
10
10
10
10
11
11
10
11
10
10
10
10
10
10
11
11
10
10
11
10
10
11
10
11
10
10
10
10
10
10
10
10
10
11
10
10
10
11
11
10
10
10
10
10
10
10
10
11
10
10
11
10
11
10
10
10
10
11
10
10
10
10
10
11
10
10
10
10
11
10
...

result:

wrong answer 12th numbers differ - expected: '10', found: '11'