QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#419707#2830. Data StructuremekoszcWA 2ms22544kbC++142.3kb2024-05-24 10:07:312024-05-24 10:07:32

詳細信息

Test #1:

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

input:

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

output:

3
1 3
2 3
1 2
0
-1

result:

ok 3 cases passed. max #moves/#balls = 1.500000000

Test #2:

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

input:

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

output:

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

result:

ok 6 cases passed. max #moves/#balls = 1.000000000

Test #3:

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

input:

2 4
1 1
1 2
1 2
1 1
2 5
1 1
1 2
0
1 1
1 2
2 6
0
1 1
0
1 1
1 2
1 2
2 4
1 2
1 1
1 1
1 2
2 5
1 1
0
1 2
1 2
1 1
2 6
1 2
0
1 1
0
1 1
1 2
2 4
1 1
1 2
1 2
1 1
2 5
0
1 2
1 1
1 1
1 2
2 6
1 1
0
1 2
1 2
0
1 1
2 3
2 2 1
1 1
1 2
2 4
2 2 1
1 1
0
1 2
2 5
1 1
0
1 2
2 1 2
0
2 3
1 2
2 1 2
1 1
2 4
1 1
2 2 1
1 2
0
2 5
...

output:

2
4 1
2 3
2
1 4
2 5
2
2 4
5 6
2
4 1
2 3
2
1 5
3 4
2
3 5
1 6
2
4 1
2 3
2
3 4
2 5
2
1 6
3 4
2
1 2
1 3
2
1 2
1 4
3
4 2
4 1
3 2
2
2 1
3 2
2
2 1
2 3
2
1 3
1 4
-1
3
2 1
3 1
2 3
3
2 1
4 1
2 4
-1
3
2 3
1 2
1 3
3
1 3
2 1
3 2
1
3 2
1
3 4
1
1 4
0
0
0

result:

ok 27 cases passed. max #moves/#balls = 1.500000000

Test #4:

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

input:

3 6
1 1
1 2
1 2
1 3
1 3
1 1
3 7
1 3
0
1 2
1 2
1 1
1 1
1 3
3 8
0
1 3
1 2
0
1 1
1 1
1 2
1 3
3 6
1 3
1 3
1 2
1 1
1 1
1 2
3 7
1 1
1 3
1 1
1 2
1 2
1 3
0
3 8
1 1
1 2
0
1 3
1 2
0
1 3
1 1
3 6
1 3
1 1
1 2
1 3
1 2
1 1
3 7
1 1
1 2
0
1 1
1 3
1 3
1 2
3 8
1 2
1 1
1 3
1 2
0
1 3
0
1 1
3 6
1 2
1 2
1 3
1 1
1 1
1 3
3 ...

output:

3
6 1
2 3
4 5
3
5 6
3 4
1 7
3
5 6
3 7
2 8
3
2 1
4 5
3 6
3
1 3
4 5
2 6
3
1 8
2 5
4 7
3
4 1
2 6
3 5
3
1 4
2 7
5 6
3
2 8
1 4
3 6
3
2 1
4 5
3 6
3
2 5
4 7
3 6
3
3 4
1 2
5 8
3
6 1
2 5
3 4
3
5 6
1 3
4 7
3
6 7
2 5
4 8
3
2 1
3 6
4 5
3
1 3
5 6
2 7
3
3 7
2 4
6 8
3
5 1
4 6
2 3
3
4 7
1 5
2 3
3
1 6
5 7
4 8
3
5 1
...

result:

wrong answer Should find solution [Case 82]