QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#474365#3098. Ancient Machineegypt_ioi2024_110 28ms9812kbC++201.5kb2024-07-12 17:40:142024-07-12 17:40:14

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

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

output:

13
1100011010110

input:

13
1100011010110

output:

0 13 3

result:

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

Test #2:

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

input:

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

output:

13
1000110011010

input:

13
1000110011010

output:

0 13 3

result:

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

Test #3:

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

input:

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

output:

13
0011110010010

input:

13
0011110010010

output:

0 13 1

result:

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

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 28ms
memory: 9812kb

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:

66644
100101100010110000101100000110001000110100000001000010000100100000101000011010000000010110110101000100001001000000100100001100010000110011011010001000110111111000100010001010010010001111110100001011000011010110101111001001111001100110001100011110001000110010000011001100011011001100100010001100...

input:

66644
100101100010110000101100000110001000110100000001000010000100100000101000011010000000010110110101000100001001000000100100001100010000110011011010001000110111111000100010001010010010001111110100001011000011010110101111001001111001100110001100011110001000110010000011001100011011001100100010001100...

output:

0 66644 18453

result:

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