QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#474466 | #3098. Ancient Machine | egypt_ioi2024_01 | 5 | 40ms | 10536kb | C++20 | 3.7kb | 2024-07-12 18:49:31 | 2024-07-12 18:49:32 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Subtask #1:
score: 5
Accepted
Test #1:
score: 100
Accepted
time: 0ms
memory: 4044kb
input:
18 Y X Y Z X Z X X Z Z Y Y Z Y Y Z X X
output:
17 00111111011010110
input:
17 00111111011010110
output:
0 17 3
result:
ok n = 18, D = 17, L = 3
Test #2:
score: 100
Accepted
time: 0ms
memory: 3788kb
input:
18 X Z X Y Y Y X Z X Y Z Z Z Z Y Z Z Y
output:
15 011000110011010
input:
15 011000110011010
output:
0 15 3
result:
ok n = 18, D = 15, L = 3
Test #3:
score: 100
Accepted
time: 0ms
memory: 3816kb
input:
18 Y Z Z Y Z X X Z Y Y Z Z Z Y X X Z Y
output:
15 000011110010010
input:
15 000011110010010
output:
0 15 2
result:
ok n = 18, D = 15, L = 2
Test #4:
score: 100
Accepted
time: 0ms
memory: 3884kb
input:
18 X Z Z X Z X X Z X Y Y X X Z X Y Z X
output:
17 01101010110011010
input:
17 01101010110011010
output:
0 17 2
result:
ok n = 18, D = 17, L = 2
Test #5:
score: 100
Accepted
time: 0ms
memory: 4076kb
input:
18 X Y X Y Y X X Z Y Z Y X Z Y Y X X Z
output:
16 0010001111010011
input:
16 0010001111010011
output:
0 16 5
result:
ok n = 18, D = 16, L = 5
Test #6:
score: 100
Accepted
time: 0ms
memory: 3788kb
input:
18 X X Y Z X Y Y Y X X Z X X X Z X Z Z
output:
16 0010110001001011
input:
16 0010110001001011
output:
0 16 2
result:
ok n = 18, D = 16, L = 2
Test #7:
score: 100
Accepted
time: 0ms
memory: 3768kb
input:
3 X Y Z
output:
6 001010
input:
6 001010
output:
0 6 1
result:
ok n = 3, D = 6, L = 1
Test #8:
score: 100
Accepted
time: 0ms
memory: 4088kb
input:
3 Z Y X
output:
5 00010
input:
5 00010
output:
0 5 0
result:
ok n = 3, D = 5, L = 0
Test #9:
score: 100
Accepted
time: 0ms
memory: 3812kb
input:
18 X X X X X X X X X X X X X X X X X X
output:
12 001000000000
input:
12 001000000000
output:
0 12 0
result:
ok n = 18, D = 12, L = 0
Test #10:
score: 100
Accepted
time: 0ms
memory: 3808kb
input:
18 Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
output:
11 00000000000
input:
11 00000000000
output:
0 11 0
result:
ok n = 18, D = 11, L = 0
Test #11:
score: 100
Accepted
time: 0ms
memory: 4044kb
input:
18 Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z
output:
11 00000000000
input:
11 00000000000
output:
0 11 0
result:
ok n = 18, D = 11, L = 0
Subtask #2:
score: 0
Wrong Answer
Test #12:
score: 0
Wrong Answer
time: 40ms
memory: 10536kb
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:
77777 111001010000010100000001010000000000100000100000101000000001001000011000000100100100001100000001010010100001010100101110010000110010000001001110000000101001001000100001110100001000001111100000100110000110010010000011101000101010000100101010101100010001100110000100010100100110000010000010001000...
input:
77777 111001010000010100000001010000000000100000100000101000000001001000011000000100100100001100000001010010100001010100101110010000110010000001001110000000101001001000100001110100001000001111100000100110000110010010000011101000101010000100101010101100010001100110000100010100100110000010000010001000...
output:
0 77777 5528
result:
wrong answer your query is valid but your solution is not optimal: read 5528 but expected 22133