QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#469783#3098. Ancient Machineegypt_ioi2024_130 54ms9780kbC++202.4kb2024-07-10 01:47:402024-07-10 01:47:40

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

input:

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

output:

28
1000111000011110010011011001

input:

28
1000111000011110010011011001

output:

0 28 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: 54ms
memory: 9780kb

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:

70000
011001000101000100100100001010000001011100001000010000011011110000100110011110000101100111010010011010111100100001101011010111011010010101010010100110010000101110010011000001011100110100111101100010111101011100101001111000110111011110011010110101001101010010001000010100000001100010100011101100...

input:

70000
011001000101000100100100001010000001011100001000010000011011110000100110011110000101100111010010011010111100100001101011010111011010010101010010100110010000101110010011000001011100110100111101100010111101011100101001111000110111011110011010110101001101010010001000010100000001100010100011101100...

output:

0 70000 0

result:

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