QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#474497#3098. Ancient Machineegypt_ioi2024b_040 46ms9932kbC++203.0kb2024-07-12 19:17:362024-07-12 19:17:41

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
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:

29
11110001000011010011111010010

input:

29
11110001000011010011111010010

output:

0 29 0

result:

wrong answer your query is valid but your solution is not optimal: read 0 but expected 3

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 46ms
memory: 9932kb

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:

72500
001101110110011011000011100010011101110001001100010100110010000011100101101011100001010001000000011001001111010001100010010111110100011110111100001101000111101100001000101000100010001001100100111101100000000011100001101101000001101001100011001111001101010011010100001111010100101111110100000000...

input:

72500
001101110110011011000011100010011101110001001100010100110010000011100101101011100001010001000000011001001111010001100010010111110100011110111100001101000111101100001000101000100010001001100100111101100000000011100001101101000001101001100011001111001101010011010100001111010100101111110100000000...

output:

0 72500 4070

result:

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