QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#426802#3098. Ancient Machineegypt_ioi2024_040 46ms10664kbC++203.5kb2024-05-31 21:45:572024-05-31 21:45: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: 3916kb

input:

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

output:

15
111010100011000

input:

15
111010100011000

output:

0 15 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: 46ms
memory: 10664kb

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:

75000
011011000100010000110100000000010010100010110000000001100110100000100100001100100000011001001110100011110110001010000001010101100110001000110110100110010000011010100100000111111010000100001000001010110000011010100100011101100010011110011000100111101010101110001110101010000100101101100100011110...

input:

75000
011011000100010000110100000000010010100010110000000001100110100000100100001100100000011001001110100011110110001010000001010101100110001000110110100110010000011010100100000111111010000100001000001010110000011010100100011101100010011110011000100111101010101110001110101010000100101101100100011110...

output:

0 75000 3227

result:

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