QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#775249 | #9783. Duloc Network | ucup-team3727# | RE | 40ms | 12512kb | Python3 | 6.8kb | 2024-11-23 15:10:56 | 2024-11-23 15:10:58 |
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
Test #1:
score: 100
Accepted
time: 22ms
memory: 12512kb
input:
4 3 1 2 2 2 1 2 1 0
output:
? 0100 ? 1000 ? 1100 ? 0010 ? 1100 ? 1110 ? 0001 ? 1110 ? 1111 ! 1
result:
ok Correct answer with 9 queries.
Test #2:
score: 0
Accepted
time: 22ms
memory: 12344kb
input:
2 0 0 0
output:
? 01 ? 10 ? 11 ! 0
result:
ok Correct answer with 3 queries.
Test #3:
score: 0
Accepted
time: 19ms
memory: 12360kb
input:
4 3 1 2 2 2 1 2 1 0
output:
? 0100 ? 1000 ? 1100 ? 0010 ? 1100 ? 1110 ? 0001 ? 1110 ? 1111 ! 1
result:
ok Correct answer with 9 queries.
Test #4:
score: 0
Accepted
time: 21ms
memory: 12360kb
input:
2 0 0 0
output:
? 01 ? 10 ? 11 ! 0
result:
ok Correct answer with 3 queries.
Test #5:
score: 0
Accepted
time: 19ms
memory: 12412kb
input:
50 1 3 4 1 4 5 1 5 6 1 6 7 4 7 10 5 9 2 5 1 4 1 5 3 10 11 5 6 4 5 3 6 1 2 1 4 5 8 1 11 12 1 12 13 2 13 14 9 10 4 6 5 6 1 3 4 5 4 6 3 14 14 7 10 7 7 2 5 5 5 3 14 16 7 10 7 9 2 4 1 3 1 4 5 8 2 16 15 7 7 4 4 3 3 1 3 3 5 9 10 6 7 1 3 5 6 3 5 1 15 14 4 3 2 3 2 1 11 12 2 14 16 4 16 17 6 7 2 4 1 5 1 3 4 7 ...
output:
? 01000000000000000000000000000000000000000000000000 ? 10000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 111000000000000000000000000000000...
result:
ok Correct answer with 515 queries.
Test #6:
score: 0
Accepted
time: 21ms
memory: 12376kb
input:
50 13 10 19 8 19 21 6 21 22 13 22 30 8 30 32 10 32 33 8 33 34 8 34 35 8 35 35 9 35 34 13 34 35 15 35 36 11 36 35 9 35 34 10 34 33 14 33 32 6 32 31 16 31 31 10 31 30 15 30 29 10 29 28 7 28 27 8 27 26 10 26 25 10 25 24 10 24 23 13 23 22 10 22 21 15 21 20 9 20 19 10 19 18 11 18 17 5 17 16 16 16 15 10 1...
output:
? 01000000000000000000000000000000000000000000000000 ? 10000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 111000000000000000000000000000000...
result:
ok Correct answer with 147 queries.
Test #7:
score: 0
Accepted
time: 30ms
memory: 12500kb
input:
50 3 1 4 1 4 5 4 5 9 3 9 12 1 12 13 1 13 14 1 14 13 9 10 5 4 4 3 3 2 1 2 1 2 1 13 12 9 10 4 3 2 3 2 1 3 12 14 9 11 4 6 1 4 3 5 5 8 3 6 1 14 15 1 15 16 1 16 17 1 17 16 8 7 6 5 2 3 4 3 2 3 9 10 3 16 16 5 7 3 6 2 4 1 4 1 3 11 12 7 8 6 7 5 8 1 2 1 4 4 7 5 16 16 9 11 3 7 2 6 1 5 1 6 1 6 6 9 1 6 5 8 7 10 ...
output:
? 01000000000000000000000000000000000000000000000000 ? 10000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 111000000000000000000000000000000...
result:
ok Correct answer with 575 queries.
Test #8:
score: 0
Accepted
time: 15ms
memory: 12352kb
input:
50 14 2 15 8 15 21 8 21 24 7 24 27 12 27 30 12 30 33 8 33 33 8 33 33 9 33 33 9 33 32 10 32 32 8 32 31 8 31 30 4 30 31 8 31 31 9 31 31 9 31 31 9 31 31 11 31 30 13 30 29 11 29 28 8 28 27 7 27 26 9 26 25 12 25 24 7 24 23 5 23 22 6 22 21 4 21 20 7 20 19 8 19 18 10 18 17 5 17 16 5 16 15 10 15 14 8 14 13 ...
output:
? 01000000000000000000000000000000000000000000000000 ? 10000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 111000000000000000000000000000000...
result:
ok Correct answer with 147 queries.
Test #9:
score: 0
Accepted
time: 16ms
memory: 12408kb
input:
50 1 3 4 1 4 5 1 5 4 4 3 3 2 1 2 1 2 2 4 4 2 4 2 2 1 4 5 1 5 6 1 6 7 1 7 8 5 8 9 5 9 2 6 1 5 1 6 3 8 3 5 2 5 1 6 1 4 1 5 1 9 10 2 10 12 1 12 13 1 13 13 5 6 8 8 5 6 3 3 2 2 1 2 1 13 14 1 14 15 3 15 14 9 11 4 7 5 7 1 4 4 6 6 6 4 4 2 5 2 2 2 5 1 14 15 1 15 14 6 5 4 3 3 2 1 2 2 1 1 2 2 3 9 10 2 14 15 5 ...
output:
? 01000000000000000000000000000000000000000000000000 ? 10000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 00100000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000 ? 111000000000000000000000000000000...
result:
ok Correct answer with 639 queries.
Test #10:
score: 0
Accepted
time: 29ms
memory: 12460kb
input:
100 2 1 3 1 3 4 1 4 5 1 5 6 1 6 7 1 7 6 4 5 3 2 2 3 1 0 1 6 7 3 7 10 3 10 13 1 13 14 1 14 15 2 15 16 6 7 4 5 3 5 1 2 2 4 9 11 3 16 16 6 9 10 10 7 10 3 3 1 4 2 2 4 16 19 6 9 4 8 2 5 1 5 1 4 10 14 1 19 20 2 20 22 2 22 21 11 11 5 7 6 6 3 5 3 3 11 12 4 6 7 8 5 6 4 5 1 3 2 4 2 21 23 1 23 22 9 8 5 4 3 2 1...
output:
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1489 queries.
Test #11:
score: 0
Accepted
time: 23ms
memory: 12308kb
input:
100 13 11 23 9 23 27 11 27 33 8 33 40 7 40 43 15 43 48 12 48 50 8 50 53 8 53 55 7 55 57 6 57 58 9 58 61 12 61 63 11 63 64 9 64 63 10 63 62 9 62 64 11 64 66 16 66 67 10 67 67 8 67 67 9 67 66 8 66 65 10 65 65 6 65 64 8 64 64 9 64 65 13 65 65 10 65 66 9 66 65 7 65 64 5 64 63 11 63 62 14 62 61 6 61 60 1...
output:
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 297 queries.
Test #12:
score: 0
Accepted
time: 18ms
memory: 12384kb
input:
100 3 5 8 3 8 11 4 11 14 8 11 5 8 3 7 3 7 2 14 16 2 16 18 2 18 19 14 15 6 8 8 9 4 6 8 19 24 8 14 6 14 2 8 11 18 2 10 9 16 4 24 28 5 28 29 8 9 6 9 3 8 3 6 2 5 20 25 4 29 30 7 10 4 7 3 7 22 24 6 10 16 18 4 30 31 24 26 3 5 21 25 6 9 2 31 32 21 23 10 11 2 32 32 21 22 11 12 3 32 34 4 34 36 6 36 37 5 37 3...
output:
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 417 queries.
Test #13:
score: 0
Accepted
time: 29ms
memory: 12340kb
input:
100 1 1 2 1 2 3 3 3 6 1 6 7 1 7 8 3 8 11 1 11 12 4 12 14 6 10 6 8 2 6 4 6 3 5 1 5 1 14 15 2 15 17 3 17 20 4 20 22 8 10 3 7 5 7 4 8 1 3 12 16 1 22 23 1 23 24 2 24 26 4 26 29 13 17 13 16 9 12 3 6 1 4 2 6 6 10 4 8 1 29 30 3 30 31 15 18 15 16 8 9 6 9 2 3 1 2 1 4 7 10 2 31 32 15 17 16 17 9 10 6 8 3 4 1 3...
output:
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1529 queries.
Test #14:
score: 0
Accepted
time: 20ms
memory: 12336kb
input:
100 1 1 2 2 2 4 3 4 7 1 7 8 3 8 11 2 11 13 1 13 14 1 14 15 1 15 14 8 7 4 5 4 3 3 2 1 2 7 8 1 14 14 8 9 6 6 3 4 3 3 1 2 2 2 1 14 15 1 15 16 4 16 20 1 20 21 1 21 22 1 22 22 11 11 5 6 6 6 5 5 3 4 2 2 1 2 11 12 2 22 24 1 24 24 12 12 5 6 7 7 4 4 3 3 1 2 3 4 12 13 1 24 24 10 11 14 14 7 7 5 5 1 2 4 4 2 3 7...
output:
? 0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1637 queries.
Test #15:
score: 0
Accepted
time: 21ms
memory: 12332kb
input:
150 2 4 6 3 6 9 2 9 11 2 11 13 3 13 16 2 16 18 4 18 22 3 22 24 11 13 6 9 5 7 3 6 2 4 11 14 3 24 26 11 14 13 15 5 7 3 5 2 5 8 11 4 26 28 11 14 6 10 5 8 3 7 2 5 15 18 6 9 2 6 4 7 9 13 2 28 30 2 30 29 11 12 6 7 4 5 2 4 5 7 19 19 9 11 10 10 8 8 2 4 4 29 32 11 14 5 9 6 9 2 6 4 7 18 22 6 32 37 12 18 20 25...
output:
? 010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1051 queries.
Test #16:
score: 0
Accepted
time: 35ms
memory: 12348kb
input:
150 2 4 6 2 6 8 1 8 9 2 9 11 1 11 12 1 12 13 8 13 20 9 16 6 13 4 11 2 10 3 11 4 12 1 20 21 2 21 23 1 23 24 3 24 26 8 11 16 18 13 16 3 5 2 4 1 4 4 26 28 8 12 18 20 13 17 5 7 1 5 4 6 2 28 27 8 10 20 19 13 15 7 6 1 3 6 5 1 27 28 4 28 31 9 12 5 8 4 7 2 6 2 5 1 5 4 8 19 23 3 31 33 18 20 5 8 13 15 2 5 11 ...
output:
? 010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1159 queries.
Test #17:
score: 0
Accepted
time: 40ms
memory: 12396kb
input:
150 1 3 4 4 4 8 1 8 9 4 9 13 2 13 15 3 15 18 1 18 17 9 10 9 8 6 5 4 5 2 1 3 4 1 17 18 3 18 21 1 21 22 1 22 23 4 23 27 5 27 29 16 20 8 13 8 12 5 9 1 6 4 8 3 8 11 14 5 10 6 9 2 5 1 4 1 6 4 9 7 29 32 13 17 8 13 4 11 4 9 5 11 4 11 1 7 16 22 5 12 11 17 4 11 7 13 1 32 33 2 33 33 9 11 24 24 8 10 16 16 15 1...
output:
? 010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2075 queries.
Test #18:
score: 0
Accepted
time: 28ms
memory: 12348kb
input:
150 4 4 8 5 8 13 4 13 17 2 17 17 8 10 9 9 5 5 4 6 2 17 19 5 19 24 3 24 26 12 15 12 14 7 9 5 7 2 5 5 8 1 26 27 4 27 29 14 18 13 15 12 14 5 8 7 10 1 5 2 29 31 2 31 32 14 15 8 10 6 7 4 5 2 4 17 19 3 32 34 11 13 8 10 4 6 4 7 3 6 21 24 1 34 35 1 35 34 21 20 6 7 15 14 1 2 14 13 14 15 2 34 36 2 36 38 3 38 ...
output:
? 010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 1695 queries.
Test #19:
score: 0
Accepted
time: 36ms
memory: 12380kb
input:
150 1 2 3 1 3 4 3 4 7 2 7 9 2 9 11 2 11 13 1 13 14 1 14 13 7 8 7 6 4 3 2 3 2 1 3 4 1 13 14 1 14 13 9 8 4 5 5 4 3 2 2 3 5 6 1 13 14 2 14 16 2 16 18 2 18 19 9 10 4 6 5 6 4 5 2 4 2 3 1 3 9 11 1 19 20 1 20 20 9 9 6 6 3 3 2 2 1 2 3 4 3 4 11 12 3 20 22 9 11 5 8 4 6 2 4 1 4 1 3 2 5 11 14 3 22 23 9 11 5 8 4...
output:
? 010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
result:
ok Correct answer with 2335 queries.
Test #20:
score: -100
Dangerous Syscalls
input:
200 3 1 4 1 4 5 3 5 8 3 8 9 4 5 1 4 3 4 4 7 1 9 10 1 10 11 1 11 12 1 12 13 1 13 14 2 14 16 1 16 17 3 17 19 11 13 5 8 6 8 5 7 4 6 1 4 1 4 6 9 2 19 21 2 21 23 1 23 24 1 24 25 3 25 28 1 28 29 2 29 30 12 13 7 9 5 6 2 3 1 2 1 3 3 5 17 19 1 30 29 12 11 7 6 5 4 2 3 3 2 2 3 5 6 18 19 1 29 30 1 30 31 1 31 32...
output:
? 01000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ? 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...