QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#317683#6399. Classic: Classical ProblemconzloiWA 21ms26420kbC++202.9kb2024-01-29 13:49:492024-01-29 13:49:51

详细

Test #1:

score: 100
Accepted
time: 17ms
memory: 26420kb

input:

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

output:

1 2
2
1 1
0
2 2
2 3

result:

ok 6 lines

Test #2:

score: 0
Accepted
time: 21ms
memory: 26128kb

input:

3
1 2
0
1 2
1
2 2
1 0

output:

2 1
0 1
1 1
0
1 2
1

result:

ok 6 lines

Test #3:

score: 0
Accepted
time: 17ms
memory: 26120kb

input:

7
1 3
0
1 3
1
2 3
1 0
1 3
2
2 3
2 0
2 3
1 2
3 3
0 1 2

output:

3 1
0 1 2
1 1
0
1 2
1
1 1
0
1 2
2
1 1
0
2 3
1 2

result:

ok 14 lines

Test #4:

score: -100
Wrong Answer
time: 17ms
memory: 26380kb

input:

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

output:

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

result:

wrong answer 10th lines differ - expected: '3', found: '2'