QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474290#3098. Ancient Machineegypt_ioi2024b_040 26ms10056kbC++202.7kb2024-07-12 17:08:352024-07-12 17:08:36

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

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

output:

37
0110100010101100000000000000000000000

input:

37
0110100010101100000000000000000000000

output:

0 37 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: 26ms
memory: 10056kb

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:

92500
001001100010100111101001011000000000010010111111000101101011001011001111001011010001001001011010010001101001000001101101101111011000100000100011001011101111101101100100010100110000000101011001001110101100000001000011010100110010101000010010001100111000101010000101101000000010000111111010110100...

input:

92500
001001100010100111101001011000000000010010111111000101101011001011001111001011010001001001011010010001101001000001101101101111011000100000100011001011101111101101100100010100110000000101011001001110101100000001000011010100110010101000010010001100111000101010000101101000000010000111111010110100...

output:

0 92500 21491

result:

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