QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#474358#3098. Ancient Machineegypt_ioi2024b_040 32ms10060kbC++202.7kb2024-07-12 17:37:472024-07-12 17:37:47

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

input:

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

output:

37
1100010000010000000000000000000000000

input:

37
1100010000010000000000000000000000000

output:

0 37 3

result:

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

Test #2:

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

input:

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

output:

37
1111100100110000000000000000000000000

input:

37
1111100100110000000000000000000000000

output:

0 37 3

result:

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

Test #3:

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

input:

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

output:

37
0001001111010000000000000000000000000

input:

37
0001001111010000000000000000000000000

output:

0 37 0

result:

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

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 69
Acceptable Answer
time: 32ms
memory: 10060kb

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:

92500
101101010001111010011000000000000000010111101011010101011111001100000000000011000000011011110001110100000000000001010011110001101101001000100000000000010100111100010110010011100000000000010000111110001101100000110000000000110100111011010000010011101000000000010000101001110110001010001000000000...

input:

92500
101101010001111010011000000000000000010111101011010101011111001100000000000011000000011011110001110100000000000001010011110001101101001000100000000000010100111100010110010011100000000000010000111110001101100000110000000000110100111011010000010011101000000000010000101001110110001010001000000000...

output:

0 92500 22133

result:

points 0.69473684210 n = 100000, D = 92500, L = 22133

Test #13:

score: 69
Acceptable Answer
time: 32ms
memory: 9852kb

input:

100000
Z X X Y Z Z Z Y Z X Y Y Z X X Z Z Z Y Z X Y X Y X Z Y X Z X Y X Y Y Z X X Z X Z Y Z Y Z Z Z Y X Z X Z Y Y Y Z Y Z Y Z X Y X Z Z X Y X Y Z X Y Z Y X Y X X Z Z X Z X X Z X X X X Y X X Z Z X Y Y Y Y X Y X X Z Y Z Y Y Z X X Z Z Y Y X Z Y Y X Y Z Y Z Y Y Z Z X Z Y Z Z Z X Y Z Z X X X X Z Y X Y Y Z...

output:

92500
000100000011101011101001011100000000000111000111000101011101001100000000000000011111110011000011011000000000000001000110111011101111011110000000000011110111010011100010100101000000000000110000001101100011110011000000000000000100100111001010111110000000000000001110010101100101101111011000000000...

input:

92500
000100000011101011101001011100000000000111000111000101011101001100000000000000011111110011000011011000000000000001000110111011101111011110000000000011110111010011100010100101000000000000110000001101100011110011000000000000000100100111001010111110000000000000001110010101100101101111011000000000...

output:

0 92500 22275

result:

points 0.69473684210 n = 100000, D = 92500, L = 22275

Test #14:

score: 0
Wrong Answer
time: 32ms
memory: 9856kb

input:

100000
X Z Y X Z X X Z Y Z Y Y Y Z Y Z X X Z X X Y Z X X Z Y X Y Y Z X Z Y Z X X X X Z X Y X Z X Z X X X Y X Y Z Z Z Z Z Z Z Z Y X Y Z X Z Y Z Y X Y Z Y Z Y X Y Z X Z Z Z Y X Y Y X X X X Y X X Y Z Z X Z Y Z Z Y X Y X Z Z Z X X Z X Z Z Z Z Y X Z Z X X Z Z Y X X Y Y Y X Y Y Y X X Y Y Z X Z Y Y X X Y Z...

output:

92500
101111110001111001111100110100000000010010100110100111100100100100000000001100011010111001000111101101000000000001111110101010101100111011100000000000110111101101101111101110010000000001100010011111000010110000110000000000011101110011110001111111000000000000000011101110100100110001100000000000...

input:

92500
101111110001111001111100110100000000010010100110100111100100100100000000001100011010111001000111101101000000000001111110101010101100111011100000000000110111101101101111101110010000000001100010011111000010110000110000000000011101110011110001111111000000000000000011101110100100110001100000000000...

output:

0 92500 11061

result:

wrong answer your query is valid but your solution is not optimal: read 11061 but expected 22177