QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#426790#3098. Ancient Machineegypt_ioi2024_040 40ms10692kbC++203.0kb2024-05-31 21:19:592024-05-31 21:19:59

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 100
Accepted
time: 0ms
memory: 3808kb

input:

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

output:

12
010011101010

input:

12
010011101010

output:

0 12 3

result:

ok n = 18, D = 12, L = 3

Test #2:

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

input:

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

output:

12
101101011010

input:

12
101101011010

output:

0 12 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: 40ms
memory: 10692kb

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:

66668
101001111011111111011111111111101011100111111101101100111101111100100011110101010010101010101001001110110011101110110001111110011011101011010110100110110100011011011101110110101111110001011110101001100101010110101111011001101110100111100110110111111110111010101010111011000010111100111110010101...

input:

66668
101001111011111111011111111111101011100111111101101100111101111100100011110101010010101010101001001110110011101110110001111110011011101011010110100110110100011011011101110110101111110001011110101001100101010110101111011001101110100111100110110111111110111010101010111011000010111100111110010101...

output:

0 66668 12683

result:

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