QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#474614#3098. Ancient Machineegypt_ioi2024b_040 32ms9772kbC++203.0kb2024-07-12 21:01:352024-07-12 21:01:36

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

18
Y X Y Z X Z X X Z Z Y Y Z Y Y Z X X

output:

30
011000110001001100110101100011

input:

30
011000110001001100110101100011

output:

0 30 3

result:

ok n = 18, D = 30, L = 3

Test #2:

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

input:

18
X Z X Y Y Y X Z X Y Z Z Z Z Y Z Z Y

output:

30
111111101001110000101001101011

input:

30
111111101001110000101001101011

output:

0 30 3

result:

ok n = 18, D = 30, L = 3

Test #3:

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

input:

18
Y Z Z Y Z X X Z Y Y Z Z Z Y X X Z Y

output:

30
100011001000101000001000110000

input:

30
100011001000101000001000110000

output:

0 30 2

result:

ok n = 18, D = 30, L = 2

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 3804kb

input:

18
X Z Z X Z X X Z X Y Y X X Z X Y Z X

output:

30
001110011000111011011011000010

input:

30
001110011000111011011011000010

output:

0 30 1

result:

wrong answer your query is valid but your solution is not optimal: read 1 but expected 2

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 32ms
memory: 9772kb

input:

100000
X Z X Z Z X Y Z Y X Y X Z Z Z Y X Z Y X Y Y X Y Y Y Z Y Z Z Y X X Y X X Y Y X X X Z Y Y Y Z Z Z Z Y X Y Y Z Z Z X Y Z X X X X Y X Y X X Z X Z Z Z X Y X X X Z X Z X X X Y Y Y Y Z X X Y Z Y Y X Z X Z Z Z Z Z Y Z Y X Y Y Y Y X Z Z Y Z Z Y Z Z Z X Z Z X X Z Z Z Z X X Z Y Y Z Y Y Z Z Y Y Z Y Z Y Z...

output:

69050
100101001001011001001000101111110110001110101000000001100000011010010111111111001100010011011100010111100100111111100111101011110010101001000001101000110011101011111010011110111110000010111011100111010100101001001101001111000010111000010101101111010101100110110011111000100110111011011011100101...

input:

69050
100101001001011001001000101111110110001110101000000001100000011010010111111111001100010011011100010111100100111111100111101011110010101001000001101000110011101011111010011110111110000010111011100111010100101001001101001111000010111000010101101111010101100110110011111000100110111011011011100101...

output:

0 69050 20548

result:

wrong answer your query is valid but your solution is not optimal: read 20548 but expected 22133