QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#469810#3098. Ancient Machineegypt_ioi2024_130 34ms9780kbC++203.4kb2024-07-10 04:08:272024-07-10 04:08:28

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 100
Accepted
time: 2ms
memory: 4080kb

input:

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

output:

70
1000000000000000011000100001011011101010110100001001100111010010110001

input:

70
1000000000000000011000100001011011101010110100001001100111010010110001

output:

0 70 3

result:

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

Test #2:

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

input:

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

output:

70
0000000000000000011100010000010000111100010110111010111101101010010000

input:

70
0000000000000000011100010000010000111100010110111010111101101010010000

output:

0 70 3

result:

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

Test #3:

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

input:

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

output:

70
1010000000000000010011000001000011001111001001100011100100010011010110

input:

70
1010000000000000010011000001000011001111001001100011100100010011010110

output:

0 70 2

result:

ok n = 18, D = 70, L = 2

Test #4:

score: 100
Accepted
time: 2ms
memory: 3768kb

input:

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

output:

70
0000000000000000011010100111001011001111011100100111010011000111110001

input:

70
0000000000000000011010100111001011001111011100100111010011000111110001

output:

0 70 2

result:

ok n = 18, D = 70, L = 2

Test #5:

score: 0
Wrong Answer
time: 2ms
memory: 3820kb

input:

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

output:

70
0000000000000000000101110001110000001010011101011101111010111100110000

input:

70
0000000000000000000101110001110000001010011101011101111010111100110000

output:

0 70 4

result:

wrong answer your query is valid but your solution is not optimal: read 4 but expected 5

Subtask #2:

score: 0
Wrong Answer

Test #12:

score: 0
Wrong Answer
time: 34ms
memory: 9780kb

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:

69765
000000000000000000001011001001010011000100011100001000000111000111010000000100001110101001000001001101110001011100011100001111011100011010110100011100101101000100000110101011001011110111101111101111100011010010110001101001111101000100110100111110111110111110010110100111011101110010001001010000...

input:

69765
000000000000000000001011001001010011000100011100001000000111000111010000000100001110101001000001001101110001011100011100001111011100011010110100011100101101000100000110101011001011110111101111101111100011010010110001101001111101000100110100111110111110111110010110100111011101110010001001010000...

output:

0 69765 21588

result:

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