QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#431958#3098. Ancient Machineegypt_ioi2024_030 28ms10168kbC++201.3kb2024-06-06 14:00:422024-06-06 14:00:43

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: 4008kb

input:

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

output:

45
100001000001000000000000000000000000000000000

input:

45
100001000001000000000000000000000000000000000

output:

0 45 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: 28ms
memory: 10168kb

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:

68773
010001000001111001010010010100010000001110001111101100100110100100101100001110010111010011101001001011110111000011001110100111111101101000001001100110000010010100101110000001000100010100011010101110101001010101010110110010111010111001001111011111110010101100010110001111000110000010011101001101...

input:

68773
010001000001111001010010010100010000001110001111101100100110100100101100001110010111010011101001001011110111000011001110100111111101101000001001100110000010010100101110000001000100010100011010101110101001010101010110110010111010111001001111011111110010101100010110001111000110000010011101001101...

output:

0 68773 9090

result:

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