QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#419684#2830. Data StructuremekoszcWA 0ms23380kbC++142.2kb2024-05-24 09:22:272024-05-24 09:22:29

詳細信息

Test #1:

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

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: 22388kb

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: -100
Wrong Answer
time: 0ms
memory: 22152kb

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
-1
6
4 2
2 1
2 4
4 3
4 2
1 3
-1
-1
4
2 3
1 4
1 3
4 2
1
3 2
1
3 4
1
1 4
0
0
0

result:

wrong answer Should find solution [Case 17]