QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474482#3098. Ancient Machineegypt_ioi2024b_040 38ms9848kbC++203.0kb2024-07-12 19:07:122024-07-12 19:07:12

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 2ms
memory: 4036kb

input:

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

output:

28
0111100010000110100111110100

input:

28
0111100010000110100111110100

output:

0 28 1

result:

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

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 38ms
memory: 9848kb

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:

67501
110000100000101111001010111000111011100010011000101001110000011100101101011100001000100000001100100111101000100100101111101000111101111001101000111101100001000101010001000100110010011110110000000111000011011010000011001100011001111001101010011010000111101010010111111010000001010110101001000001...

input:

67501
110000100000101111001010111000111011100010011000101001110000011100101101011100001000100000001100100111101000100100101111101000111101111001101000111101100001000101010001000100110010011110110000000111000011011010000011001100011001111001101010011010000111101010010111111010000001010110101001000001...

output:

0 67501 8332

result:

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