QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#184250 | #3098. Ancient Machine | znstz# | 5 | 42ms | 9968kb | C++20 | 2.3kb | 2023-09-20 15:48:02 | 2024-07-04 02:05:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 5
Accepted
Test #1:
score: 100
Accepted
time: 2ms
memory: 3812kb
input:
18 Y X Y Z X Z X X Z Z Y Y Z Y Y Z X X
output:
20 10010010100101111001
input:
20 10010010100101111001
output:
0 20 3
result:
ok n = 18, D = 20, L = 3
Test #2:
score: 100
Accepted
time: 2ms
memory: 3744kb
input:
18 X Z X Y Y Y X Z X Y Z Z Z Z Y Z Z Y
output:
20 10011110000011101001
input:
20 10011110000011101001
output:
0 20 3
result:
ok n = 18, D = 20, L = 3
Test #3:
score: 100
Accepted
time: 2ms
memory: 3812kb
input:
18 Y Z Z Y Z X X Z Y Y Z Z Z Y X X Z Y
output:
20 00010011100011101001
input:
20 00010011100011101001
output:
0 20 2
result:
ok n = 18, D = 20, L = 2
Test #4:
score: 100
Accepted
time: 0ms
memory: 3816kb
input:
18 X Z Z X Z X X Z X Y Y X X Z X Y Z X
output:
20 11101110100011101001
input:
20 11101110100011101001
output:
0 20 2
result:
ok n = 18, D = 20, 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:
20 10100000010010010000
input:
20 10100000010010010000
output:
0 20 5
result:
ok n = 18, D = 20, L = 5
Test #6:
score: 100
Accepted
time: 2ms
memory: 3788kb
input:
18 X X Y Z X Y Y Y X X Z X X X Z X Z Z
output:
20 10111101111011110010
input:
20 10111101111011110010
output:
0 20 2
result:
ok n = 18, D = 20, L = 2
Test #7:
score: 100
Accepted
time: 2ms
memory: 3740kb
input:
3 X Y Z
output:
10 1101001011
input:
10 1101001011
output:
0 10 1
result:
ok n = 3, D = 10, L = 1
Test #8:
score: 100
Accepted
time: 2ms
memory: 3788kb
input:
3 Z Y X
output:
1 0
input:
1 0
output:
0 1 0
result:
ok n = 3, D = 1, L = 0
Test #9:
score: 100
Accepted
time: 2ms
memory: 3768kb
input:
18 X X X X X X X X X X X X X X X X X X
output:
1 0
input:
1 0
output:
0 1 0
result:
ok n = 18, D = 1, L = 0
Test #10:
score: 100
Accepted
time: 2ms
memory: 4076kb
input:
18 Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y
output:
1 0
input:
1 0
output:
0 1 0
result:
ok n = 18, D = 1, L = 0
Test #11:
score: 100
Accepted
time: 2ms
memory: 4040kb
input:
18 Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z Z
output:
1 0
input:
1 0
output:
0 1 0
result:
ok n = 18, D = 1, L = 0
Subtask #2:
score: 0
Wrong Answer
Test #12:
score: 96
Acceptable Answer
time: 40ms
memory: 9968kb
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:
71430 101101000010111101000101111010000010001100111010110011111011000110100000011110110111100010001011101101011010010101001111010001110100010001100011111111100010110100010110000000101001001000000010100000101010101001001010101101001101110011010010001010000001110001011001111001001010111101100000100100...
input:
71430 101101000010111101000101111010000010001100111010110011111011000110100000011110110111100010001011101101011010010101001111010001110100010001100011111111100010110100010110000000101001001000000010100000101010101001001010101101001101110011010010001010000001110001011001111001001010111101100000100100...
output:
0 71430 22133
result:
points 0.96842105260 n = 100000, D = 71430, L = 22133
Test #13:
score: 96
Acceptable Answer
time: 42ms
memory: 9968kb
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:
71430 011010101000110010101010010000001100000111011000100110001100000000110100100001000010100010110111001001101000110010100101000111011101001010001010100011010011101110001011100001101001110000011110110111011011001101011110011111001000010100111000000011011101010110100100001101001110111000000010010100...
input:
71430 011010101000110010101010010000001100000111011000100110001100000000110100100001000010100010110111001001101000110010100101000111011101001010001010100011010011101110001011100001101001110000011110110111011011001101011110011111001000010100111000000011011101010110100100001101001110111000000010010100...
output:
0 71430 22275
result:
points 0.96842105260 n = 100000, D = 71430, L = 22275
Test #14:
score: 0
Wrong Answer
time: 32ms
memory: 9872kb
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:
71430 101101100101111000100101100111100000100100101100001000100001000000010000111100110010101000000000001010011110011100101100001110110010011000100010101100010100110100000000001011000011011110010010111111110011010101000001000000110001110011011000010000001111000000100110011100011100000001100001110011...
input:
71430 101101100101111000100101100111100000100100101100001000100001000000010000111100110010101000000000001010011110011100101100001110110010011000100010101100010100110100000000001011000011011110010010111111110011010101000001000000110001110011011000010000001111000000100110011100011100000001100001110011...
output:
0 71430 22176
result:
wrong answer your query is valid but your solution is not optimal: read 22176 but expected 22177