QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#569836#7211. AttackstoccfWA 9ms12080kbC++144.9kb2024-09-17 11:21:212024-09-17 11:21:22

詳細信息

Test #1:

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

input:

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

output:

1 2 
1 2 3 4 5 

result:

ok 7 numbers

Test #2:

score: 0
Accepted
time: 2ms
memory: 11776kb

input:

2 1
1 1
1 2
1 1

output:

1 2 

result:

ok 2 number(s): "1 2"

Test #3:

score: 0
Accepted
time: 9ms
memory: 12004kb

input:

5 20000
1 1 1 1 1
4 5
2 1
4 3
2 3
4 4 3 1 2
4 3 4 2 1
4 4 3 2 1
1 2
3 3 2 4
1 1
4 2 3 1 4
2 4 1
3 3 2 4
3 2 4 1
1 3
2 1 3
2 2 1
4 3 2 4 1
2 3 4
4 4 2 1 3
1 4
3 2 1 4
3 2 4 1
3 4 1 2
1 3
3 4 3 1
3 3 1 4
1 2
2 3 2
1 2
3 2 3 4
2 3 4
1 3
4 2 3 4 1
2 3 4
3 2 1 4
3 3 1 4
1 1
1 3
2 2 1
2 3 4
3 1 2 4
3 3 4 ...

output:

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

result:

ok 69864 numbers

Test #4:

score: 0
Accepted
time: 9ms
memory: 11916kb

input:

5 20000
1 1 1 1 1
4 1
2 1
3 1
3 5
1 1
4 2 1 3 4
2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4 5 
1 2 3 4 5 
1 3 
1 4 
1 3 
2 5 
1 3 4 5 
1 2 4 
1 2 3 4 
1 3 4 
1 3 5 
1 3 4 
1 2 3 4 
1 3 5 
1 2 3 4 5 
1 2 3 4 
1 2 4 
1 3 5 
2 5 
1 2 3 4 
1 2 3 4 5 
1 3 5 
1 3 
1 2 3 4 5 
1 3 4...

result:

ok 70058 numbers

Test #6:

score: 0
Accepted
time: 9ms
memory: 11780kb

input:

5 20000
1 1 1 1 1
2 1
5 2
1 4
5 3
3 1 4 2
4 2 1 3 4
3 1 4 3
2 4 2
4 4 2 1 3
4 3 2 1 4
2 3 1
1 2
3 1 3 2
3 4 2 3
2 2 3
3 3 4 2
4 3 2 1 4
3 2 1 3
2 4 3
2 1 4
3 2 3 1
1 2
3 4 2 3
2 4 2
4 1 2 3 4
2 3 4
2 1 3
3 4 2 1
1 3
3 1 3 4
3 2 3 4
3 1 3 2
2 1 3
3 1 2 3
3 2 4 3
4 2 1 4 3
1 1
1 3
3 2 3 4
2 3 1
2 3 2
...

output:

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

result:

ok 70165 numbers

Test #7:

score: 0
Accepted
time: 9ms
memory: 11772kb

input:

5 20000
1 1 1 1 1
4 1
4 3
1 2
3 5
4 4 3 2 1
2 2 3
3 4 2 1
1 1
2 4 1
3 4 1 2
1 4
1 3
1 3
3 2 1 3
3 4 3 2
1 1
2 2 3
1 1
4 1 2 4 3
1 2
3 4 3 1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4 5 
1 2 3 4 5 
1 2 3 4 5 
1 2 3 4 
1 2 3 4 5 
2 4 5 
1 2 3 4 5 
2 3 
2 4 
1 2 
2 3 
2 4 
1 2 ...

result:

ok 69943 numbers

Test #9:

score: 0
Accepted
time: 9ms
memory: 12072kb

input:

5 20000
1 1 1 1 1
2 1
2 5
4 2
5 3
3 4 3 2
4 3 2 1 4
1 2
2 1 3
2 4 2
4 2 1 3 4
2 1 4
4 2 3 4 1
2 3 1
4 3 2 1 4
2 2 1
2 2 1
3 1 3 2
3 3 2 1
2 2 4
1 3
4 3 1 4 2
4 2 4 1 3
4 2 3 1 4
3 4 3 1
2 3 1
4 1 2 3 4
4 4 2 1 3
4 3 2 4 1
2 4 1
4 2 4 1 3
1 4
4 3 4 2 1
4 2 4 3 1
2 2 4
2 1 4
2 1 2
1 4
3 4 3 2
1 3
2 4 ...

output:

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

result:

ok 69891 numbers

Test #10:

score: 0
Accepted
time: 3ms
memory: 11828kb

input:

5 20000
1 1 1 1 1
5 3
2 1
4 1
2 5
3 3 2 1
3 2 1 4
2 4 1
3 3 1 4
3 4 3 2
4 3 1 4 2
2 3 1
3 1 4 3
3 3 2 1
2 4 1
4 1 3 2 4
1 2
4 1 2 4 3
2 2 1
1 1
4 4 2 1 3
3 2 1 3
3 1 3 4
4 2 4 1 3
2 2 4
3 3 2 4
4 3 1 2 4
1 3
1 3
2 2 4
2 4 1
4 1 3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 
1 2 ...

result:

ok 70318 numbers

Test #12:

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

input:

5 20000
2 1 2 2 1
3 1
2 1
5 2
4 2
3 3 4 2
4 1 2 3 4
1 3
2 2 4
3 2 4 3
2 2 3
1 4
4 2 4 1 3
1 3
1 3
2 4 1
4 1 4 3 2
3 1 2 4
4 1 2 3 4
1 4
1 2
3 1 2 4
3 1 4 2
3 2 1 4
4 1 3 2 4
1 1
3 3 2 1
4 1 3 4 2
4 4 2 3 1
3 3 4 2
3 3 4 1
3 4 3 1
1 3
1 2
1 1
2 1 4
2 3 4
1 4
1 1
4 2 4 3 1
4 3 1 2 4
2 1 3
4 1 4 3 2
4 ...

output:

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

result:

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