QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#431962#3098. Ancient Machineegypt_ioi2024_030 42ms10080kbC++201.2kb2024-06-06 14:04:572024-06-06 14:04:57

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

input:

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

output:

46
1000010000010000000000000000000000000000000000

input:

46
1000010000010000000000000000000000000000000000

output:

0 46 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: 42ms
memory: 10080kb

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:

71461
010001000001111001010010010100010000001110000001010011111110000110110110101010110110100100001110010101001110100100000101111010100001100110001110000000110111110111111011110100100010010010100000011110110001110110111011001111100010100110011111110000001101101101010000101100111111100001100000111001...

input:

71461
010001000001111001010010010100010000001110000001010011111110000110110110101010110110100100001110010101001110100100000101111010100001100110001110000000110111110111111011110100100010010010100000011110110001110110111011001111100010100110011111110000001101101101010000101100111111100001100000111001...

output:

0 71461 11102

result:

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