QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#853343 | #9734. Identify Chord | ucup-team025# | AC ✓ | 72ms | 3868kb | C++20 | 12.9kb | 2025-01-11 16:40:32 | 2025-01-11 16:40:32 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3508kb
input:
2 6 2 1 2 1 1 4 1 1 1 1 1
output:
? 1 4 ? 2 4 ? 1 3 ? 3 4 ! 2 4 ? 1 3 ? 2 3 ? 1 2 ? 3 4 ! 1 3
result:
ok ok (2 test cases)
Test #2:
score: 0
Accepted
time: 11ms
memory: 3592kb
input:
1000 15 5 6 4 2 2 1 1 19 5 4 3 4 2 3 1 17 5 4 3 4 2 3 1 15 6 7 6 5 7 1 14 5 4 4 4 5 1 15 3 2 1 3 2 1 17 8 8 8 7 6 5 5 4 1 20 6 7 5 5 8 7 1 13 5 6 5 2 3 1 18 3 4 4 5 3 2 1 13 4 3 4 3 2 3 1 14 2 3 3 3 1 2 1 17 8 7 6 3 3 2 1 12 5 4 5 3 3 1 10 5 5 3 2 4 1 2 1 14 6 5 6 3 1 1 1 19 8 7 8 5 5 6 1 19 6 5 4 6...
output:
? 1 8 ? 1 9 ? 2 8 ? 4 8 ? 6 8 ? 5 8 ! 5 8 ? 1 10 ? 1 11 ? 2 11 ? 5 11 ? 3 11 ? 4 11 ! 3 12 ? 1 9 ? 1 10 ? 2 10 ? 5 10 ? 3 10 ? 4 10 ! 3 11 ? 1 8 ? 1 9 ? 2 8 ? 8 13 ? 8 15 ! 1 3 ? 1 8 ? 2 8 ? 1 7 ? 4 8 ? 3 8 ! 2 5 ? 1 8 ? 1 9 ? 2 9 ? 4 9 ? 3 9 ! 2 9 ? 1 9 ? 1 10 ? 2 10 ? 2 11 ? 3 11 ? 6 11 ? 4 11 ? 5...
result:
ok ok (1000 test cases)
Test #3:
score: 0
Accepted
time: 14ms
memory: 3512kb
input:
1000 21 3 4 4 6 3 2 1 22 8 7 9 6 6 7 1 20 5 4 6 2 3 2 1 1 22 10 9 10 5 3 4 4 1 21 9 8 7 3 3 2 1 21 8 7 8 5 5 4 5 1 24 11 11 10 5 3 4 4 1 22 10 10 10 5 2 2 1 21 4 3 2 6 3 1 23 8 7 8 6 7 6 1 21 10 10 10 9 8 4 4 3 1 24 9 8 10 3 3 2 3 1 20 9 9 9 4 2 1 1 1 24 11 10 10 5 2 2 1 23 8 9 9 7 10 9 1 23 7 6 5 7...
output:
? 1 11 ? 1 12 ? 2 11 ? 11 17 ? 11 20 ? 11 21 ! 21 10 ? 1 12 ? 2 12 ? 1 11 ? 6 12 ? 3 12 ? 4 12 ! 3 17 ? 1 11 ? 2 11 ? 1 10 ? 6 11 ? 3 11 ? 4 11 ? 5 11 ! 5 11 ? 1 12 ? 2 12 ? 1 11 ? 6 12 ? 9 12 ? 7 12 ? 8 12 ! 7 15 ? 1 11 ? 1 12 ? 2 12 ? 6 12 ? 8 12 ? 7 12 ! 7 13 ? 1 11 ? 1 12 ? 2 12 ? 12 17 ? 12 20 ...
result:
ok ok (1000 test cases)
Test #4:
score: 0
Accepted
time: 21ms
memory: 3820kb
input:
1000 25 8 9 9 7 10 9 1 25 6 7 7 7 7 5 6 1 25 11 12 11 7 8 9 1 25 5 6 4 6 4 3 1 26 12 12 12 6 4 5 5 1 26 11 12 10 7 10 10 9 1 26 13 13 11 12 12 7 10 12 1 27 12 13 11 6 4 5 5 1 25 9 10 10 3 2 2 1 1 27 9 10 8 7 6 7 1 27 11 10 11 4 4 3 4 1 27 13 13 13 13 11 12 12 7 8 7 6 1 26 5 6 6 7 4 4 3 1 25 11 12 11...
output:
? 1 13 ? 1 14 ? 2 13 ? 13 20 ? 13 23 ? 13 25 ! 1 6 ? 1 13 ? 1 14 ? 2 13 ? 13 20 ? 13 23 ? 13 25 ? 13 24 ! 25 9 ? 1 13 ? 1 14 ? 2 13 ? 13 20 ? 13 23 ? 13 22 ! 23 6 ? 1 13 ? 1 14 ? 2 13 ? 7 13 ? 4 13 ? 3 13 ! 3 11 ? 1 14 ? 2 14 ? 1 13 ? 14 21 ? 14 18 ? 14 20 ? 14 19 ! 20 18 ? 1 14 ? 2 14 ? 1 13 ? 14 2...
result:
ok ok (1000 test cases)
Test #5:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
1000 29 10 9 8 8 8 7 1 28 13 13 12 7 10 8 8 1 30 3 2 4 8 4 3 1 29 4 5 3 7 5 4 1 28 8 9 7 3 5 3 2 1 29 6 5 4 8 4 3 1 29 9 8 9 7 5 7 6 1 28 11 10 10 4 4 5 1 30 4 5 5 5 1 3 2 1 30 8 9 7 3 5 3 2 1 28 11 10 12 4 3 3 2 1 29 14 13 14 6 4 5 5 1 29 11 12 10 7 10 9 1 29 7 8 8 2 4 2 1 1 29 14 14 14 13 14 7 11 ...
output:
? 1 15 ? 1 16 ? 2 16 ? 8 16 ? 4 16 ? 3 16 ! 3 22 ? 1 15 ? 2 15 ? 1 14 ? 15 22 ? 15 26 ? 15 24 ? 15 23 ! 24 8 ? 1 16 ? 2 16 ? 1 15 ? 8 16 ? 4 16 ? 3 16 ! 2 17 ? 1 15 ? 1 16 ? 2 15 ? 8 15 ? 4 15 ? 3 15 ! 2 13 ? 1 15 ? 2 15 ? 1 14 ? 15 22 ? 15 26 ? 15 24 ? 15 23 ! 23 14 ? 1 15 ? 1 16 ? 2 16 ? 8 16 ? 4 ...
result:
ok ok (1000 test cases)
Test #6:
score: 0
Accepted
time: 16ms
memory: 3560kb
input:
1000 32 13 12 12 8 9 10 10 1 30 14 14 14 8 11 10 11 1 32 16 16 14 13 15 8 10 8 9 1 31 5 6 4 6 2 4 3 1 32 7 6 8 8 7 5 6 1 32 8 7 9 8 10 8 1 31 15 14 13 7 3 3 4 1 31 6 5 6 8 6 4 5 1 32 12 11 11 4 4 4 3 1 30 14 14 14 8 11 9 9 1 31 11 12 12 9 8 10 9 1 31 10 9 10 2 4 2 1 1 33 7 8 8 9 11 9 8 1 32 11 10 12...
output:
? 1 17 ? 2 17 ? 1 16 ? 9 17 ? 5 17 ? 7 17 ? 6 17 ! 5 9 ? 1 16 ? 2 16 ? 1 15 ? 16 24 ? 16 28 ? 16 26 ? 16 27 ! 28 26 ? 1 17 ? 2 18 ? 3 19 ? 4 19 ? 3 18 ? 11 19 ? 7 19 ? 9 19 ? 10 19 ! 9 26 ? 1 16 ? 1 17 ? 2 16 ? 8 16 ? 4 16 ? 6 16 ? 5 16 ! 4 15 ? 1 17 ? 2 17 ? 1 16 ? 9 17 ? 5 17 ? 3 17 ? 4 17 ! 3 21 ...
result:
ok ok (1000 test cases)
Test #7:
score: 0
Accepted
time: 28ms
memory: 3560kb
input:
1000 34 17 16 15 16 9 13 14 13 1 33 8 9 7 6 4 4 3 1 33 11 10 11 8 8 8 7 1 34 11 12 10 9 9 9 8 1 34 11 10 12 9 13 11 1 35 14 15 15 10 14 16 15 1 34 8 9 7 9 8 6 7 1 34 14 13 15 9 10 11 11 1 34 16 15 15 9 13 14 13 1 33 9 8 9 6 4 4 3 1 33 16 16 16 16 16 15 7 3 1 1 1 34 16 16 16 9 13 15 16 1 33 13 14 14 ...
output:
? 1 18 ? 2 19 ? 3 19 ? 2 18 ? 10 19 ? 6 19 ? 4 19 ? 5 19 ! 5 31 ? 1 17 ? 1 18 ? 2 17 ? 9 17 ? 5 17 ? 7 17 ? 6 17 ! 6 15 ? 1 17 ? 1 18 ? 2 18 ? 18 26 ? 18 30 ? 18 32 ? 18 31 ! 31 24 ? 1 18 ? 2 18 ? 1 17 ? 18 27 ? 18 31 ? 18 33 ? 18 32 ! 32 11 ? 1 18 ? 2 18 ? 1 17 ? 9 18 ? 5 18 ? 3 18 ! 2 27 ? 1 18 ? ...
result:
ok ok (1000 test cases)
Test #8:
score: 0
Accepted
time: 15ms
memory: 3592kb
input:
1000 36 18 17 16 17 8 4 2 1 1 1 36 3 4 4 8 3 1 2 1 36 13 12 12 9 11 11 10 1 36 5 4 4 9 5 3 4 1 36 18 17 16 17 9 13 12 13 1 36 12 11 13 3 5 5 4 1 35 13 12 13 4 5 6 5 1 36 13 12 14 4 5 4 3 1 36 14 13 15 9 10 10 9 1 36 16 15 15 9 12 10 9 8 1 36 9 8 10 9 5 7 6 1 36 8 9 7 9 6 6 5 1 36 17 16 16 8 4 3 4 1 ...
output:
? 1 19 ? 2 20 ? 3 20 ? 2 19 ? 11 20 ? 15 20 ? 17 20 ? 18 20 ? 19 20 ! 18 20 ? 1 19 ? 2 19 ? 1 18 ? 19 28 ? 19 33 ? 19 35 ? 19 34 ! 35 19 ? 1 19 ? 2 19 ? 1 18 ? 10 19 ? 5 19 ? 3 19 ? 4 19 ! 4 10 ? 1 19 ? 2 19 ? 1 18 ? 10 19 ? 5 19 ? 3 19 ? 4 19 ! 3 17 ? 1 19 ? 2 20 ? 3 20 ? 2 19 ? 11 20 ? 6 20 ? 8 20...
result:
ok ok (1000 test cases)
Test #9:
score: 0
Accepted
time: 5ms
memory: 3616kb
input:
1000 37 17 18 17 8 6 6 7 1 36 17 17 17 8 5 7 8 1 38 9 8 8 6 5 3 4 1 37 15 14 13 5 3 3 2 1 37 12 13 13 3 3 1 2 1 36 8 9 9 9 6 6 5 1 37 6 5 6 9 5 3 4 1 37 18 18 18 18 16 17 17 10 12 10 9 10 1 37 17 18 17 8 4 2 1 2 1 37 8 7 6 6 3 3 2 1 37 10 9 10 9 9 7 8 1 37 18 18 18 17 18 9 14 16 17 1 36 3 4 4 9 5 3 ...
output:
? 1 19 ? 1 20 ? 2 19 ? 19 29 ? 19 25 ? 19 27 ? 19 26 ! 27 14 ? 1 19 ? 2 19 ? 1 18 ? 19 28 ? 19 24 ? 19 26 ? 19 27 ! 28 26 ? 1 20 ? 2 20 ? 1 19 ? 10 20 ? 5 20 ? 7 20 ? 8 20 ! 7 18 ? 1 19 ? 1 20 ? 2 20 ? 10 20 ? 14 20 ? 12 20 ? 13 20 ! 13 21 ? 1 19 ? 1 20 ? 2 19 ? 19 29 ? 19 25 ? 19 27 ? 19 26 ! 27 19...
result:
ok ok (1000 test cases)
Test #10:
score: 0
Accepted
time: 11ms
memory: 3860kb
input:
1000 39 18 17 16 8 6 6 5 6 1 38 8 9 9 5 4 2 3 1 38 19 19 17 16 18 8 5 6 5 6 1 39 12 13 11 10 14 12 1 38 15 16 16 6 3 4 3 2 1 39 4 3 4 10 7 5 4 1 39 18 19 18 11 16 16 17 1 38 18 17 18 9 4 2 1 1 1 39 14 13 14 10 15 15 14 1 39 11 12 10 6 7 5 4 5 1 39 9 8 7 11 8 6 7 1 38 19 18 17 18 9 4 2 1 1 1 39 15 16...
output:
? 1 20 ? 1 21 ? 2 21 ? 10 21 ? 15 21 ? 12 21 ? 13 21 ? 14 21 ! 13 25 ? 1 20 ? 2 20 ? 1 19 ? 20 30 ? 20 35 ? 20 33 ? 20 32 ! 33 21 ? 1 20 ? 2 21 ? 3 22 ? 4 22 ? 3 21 ? 12 22 ? 17 22 ? 14 22 ? 15 22 ? 16 22 ! 15 26 ? 1 20 ? 1 21 ? 2 20 ? 10 20 ? 5 20 ? 3 20 ! 2 10 ? 1 20 ? 2 20 ? 1 19 ? 20 30 ? 20 25 ...
result:
ok ok (1000 test cases)
Test #11:
score: 0
Accepted
time: 23ms
memory: 3508kb
input:
1000 40 12 11 13 10 7 7 6 1 40 18 17 19 8 5 8 7 1 40 15 14 16 10 15 13 14 1 40 8 9 7 10 13 10 9 1 40 16 17 17 6 5 4 3 4 1 40 15 16 14 9 10 8 7 8 1 41 13 14 14 11 16 15 14 1 40 7 8 8 10 6 5 4 5 1 40 18 19 19 8 3 3 4 1 40 6 5 5 10 5 4 3 4 1 40 4 3 3 10 7 4 1 41 12 11 10 11 10 9 8 9 1 40 17 18 16 9 12 ...
output:
? 1 21 ? 2 21 ? 1 20 ? 11 21 ? 6 21 ? 8 21 ? 7 21 ! 7 26 ? 1 21 ? 2 21 ? 1 20 ? 11 21 ? 16 21 ? 13 21 ? 12 21 ! 12 27 ? 1 21 ? 2 21 ? 1 20 ? 11 21 ? 6 21 ? 3 21 ? 4 21 ! 3 33 ? 1 21 ? 2 21 ? 1 20 ? 21 31 ? 21 36 ? 21 39 ? 21 40 ! 1 14 ? 1 21 ? 2 21 ? 1 20 ? 21 31 ? 21 26 ? 21 29 ? 21 28 ? 21 27 ! 28...
result:
ok ok (1000 test cases)
Test #12:
score: 0
Accepted
time: 13ms
memory: 3596kb
input:
1000 42 11 10 10 11 6 8 7 1 41 17 16 17 10 13 14 13 12 1 41 8 9 9 11 9 6 7 1 41 12 13 13 10 7 7 6 1 41 12 11 10 3 6 4 3 2 1 41 18 19 19 11 13 14 14 1 41 14 13 14 10 15 13 12 1 41 20 20 19 18 17 10 13 11 10 9 1 41 17 18 18 11 14 15 14 13 1 41 15 14 15 4 5 4 3 1 41 18 19 19 10 13 11 10 9 1 42 20 19 19...
output:
? 1 22 ? 2 22 ? 1 21 ? 11 22 ? 6 22 ? 8 22 ? 7 22 ! 6 17 ? 1 21 ? 1 22 ? 2 22 ? 22 32 ? 22 37 ? 22 40 ? 22 39 ? 22 38 ! 38 33 ? 1 21 ? 1 22 ? 2 21 ? 21 32 ? 21 37 ? 21 40 ? 21 39 ! 40 16 ? 1 21 ? 1 22 ? 2 21 ? 21 32 ? 21 37 ? 21 35 ? 21 36 ! 36 16 ? 1 21 ? 1 22 ? 2 22 ? 11 22 ? 6 22 ? 8 22 ? 9 22 ? ...
result:
ok ok (1000 test cases)
Test #13:
score: 0
Accepted
time: 20ms
memory: 3556kb
input:
1000 43 4 5 3 10 5 2 3 1 42 18 17 17 8 3 3 4 1 43 6 7 5 8 3 4 3 2 1 43 18 19 19 10 13 11 10 9 1 43 21 21 21 20 19 12 17 18 17 18 1 43 17 18 18 12 12 14 13 1 43 18 19 17 11 16 16 17 1 43 21 21 21 20 21 11 16 19 20 1 42 13 14 14 11 8 8 7 1 42 20 20 20 10 6 9 10 1 42 5 6 4 11 6 3 4 1 43 5 6 6 12 10 7 6...
output:
? 1 22 ? 1 23 ? 2 22 ? 11 22 ? 6 22 ? 3 22 ? 4 22 ! 3 21 ? 1 22 ? 2 22 ? 1 21 ? 11 22 ? 16 22 ? 19 22 ? 17 22 ! 16 20 ? 1 22 ? 1 23 ? 2 22 ? 11 22 ? 6 22 ? 3 22 ? 4 22 ? 5 22 ! 5 21 ? 1 22 ? 1 23 ? 2 22 ? 22 34 ? 22 39 ? 22 37 ? 22 36 ? 22 35 ! 35 14 ? 1 22 ? 1 23 ? 2 23 ? 2 24 ? 3 24 ? 12 24 ? 7 24...
result:
ok ok (1000 test cases)
Test #14:
score: 0
Accepted
time: 11ms
memory: 3868kb
input:
1000 44 22 22 20 19 21 11 17 18 17 18 1 44 11 10 12 11 8 9 8 7 1 43 11 10 11 4 5 3 2 3 1 43 21 21 21 21 19 20 20 9 4 4 5 1 44 19 18 20 11 17 19 1 44 16 15 15 11 13 14 13 12 1 44 17 18 16 6 5 4 3 4 1 44 10 9 11 7 5 4 4 3 1 43 13 14 14 3 7 5 4 1 43 4 3 4 9 4 1 2 1 44 9 8 8 8 4 5 3 4 1 44 20 21 19 11 1...
output:
? 1 23 ? 2 24 ? 3 25 ? 4 25 ? 3 24 ? 14 25 ? 8 25 ? 5 25 ? 6 25 ? 7 25 ! 6 41 ? 1 23 ? 2 23 ? 1 22 ? 12 23 ? 6 23 ? 3 23 ? 4 23 ? 5 23 ! 5 29 ? 1 22 ? 1 23 ? 2 23 ? 23 34 ? 23 39 ? 23 37 ? 23 36 ? 23 35 ! 36 24 ? 1 22 ? 1 23 ? 2 23 ? 2 24 ? 21 43 ? 22 43 ? 1 21 ? 21 33 ? 21 28 ? 21 25 ? 21 27 ! 28 1...
result:
ok ok (1000 test cases)
Test #15:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
1000 45 20 21 21 12 18 20 19 1 45 16 17 17 12 13 14 13 12 1 45 10 11 9 11 7 8 7 6 1 45 15 14 13 12 9 12 10 1 45 11 12 10 11 14 11 1 45 16 17 17 11 11 8 9 1 45 19 18 19 7 4 5 4 3 1 45 5 6 6 10 4 3 2 3 1 44 19 20 20 11 14 13 13 12 1 45 12 11 12 11 16 13 12 1 44 20 21 21 11 15 12 13 1 45 15 16 14 11 16...
output:
? 1 23 ? 1 24 ? 2 23 ? 23 35 ? 23 41 ? 23 44 ? 23 45 ! 45 5 ? 1 23 ? 1 24 ? 2 23 ? 23 35 ? 23 41 ? 23 44 ? 23 43 ? 23 42 ! 42 12 ? 1 23 ? 1 24 ? 2 23 ? 12 23 ? 6 23 ? 3 23 ? 4 23 ? 5 23 ! 5 18 ? 1 23 ? 1 24 ? 2 24 ? 12 24 ? 6 24 ? 9 24 ? 7 24 ! 6 32 ? 1 23 ? 1 24 ? 2 23 ? 12 23 ? 6 23 ? 3 23 ! 2 14 ...
result:
ok ok (1000 test cases)
Test #16:
score: 0
Accepted
time: 9ms
memory: 3616kb
input:
1000 46 18 17 19 9 13 10 9 8 1 46 9 8 10 12 8 7 6 7 1 46 22 21 22 12 17 15 16 16 1 46 19 18 18 12 14 15 15 1 46 5 6 4 12 10 7 6 1 46 21 20 22 10 6 9 9 8 1 46 18 17 19 7 6 9 8 1 46 16 15 17 5 6 8 6 1 46 22 22 22 11 5 2 2 1 46 5 4 6 12 8 5 1 45 19 18 19 11 13 14 12 13 1 46 14 15 13 12 11 12 11 10 1 46...
output:
? 1 24 ? 2 24 ? 1 23 ? 12 24 ? 6 24 ? 9 24 ? 10 24 ? 11 24 ! 11 31 ? 1 24 ? 2 24 ? 1 23 ? 12 24 ? 6 24 ? 3 24 ? 4 24 ? 5 24 ! 4 29 ? 1 24 ? 2 24 ? 1 23 ? 12 24 ? 6 24 ? 9 24 ? 7 24 ? 8 24 ! 7 39 ? 1 24 ? 2 24 ? 1 23 ? 12 24 ? 6 24 ? 9 24 ? 7 24 ! 6 11 ? 1 24 ? 2 24 ? 1 23 ? 24 36 ? 24 42 ? 24 45 ? 2...
result:
ok ok (1000 test cases)
Test #17:
score: 0
Accepted
time: 71ms
memory: 3612kb
input:
1000 1000000000 499999999 499999999 499999999 250000000 374999999 312500000 343750000 359375000 367187500 371093750 373046874 372070312 371582032 371826173 371948243 372009278 372039796 372055054 372047425 372043611 372045519 372046473 372046950 372047188 372047307 372047367 372047396 372047381 3720...
output:
? 1 500000001 ? 2 500000001 ? 1 500000000 ? 500000001 750000001 ? 500000001 875000001 ? 500000001 812500001 ? 500000001 843750001 ? 500000001 859375001 ? 500000001 867187501 ? 500000001 871093751 ? 500000001 873046876 ? 500000001 872070314 ? 500000001 871582033 ? 500000001 871826174 ? 500000001 8719...
result:
ok ok (1000 test cases)
Test #18:
score: 0
Accepted
time: 56ms
memory: 3852kb
input:
1000 1000000000 499999969 499999968 499999968 249999969 124999969 62500000 93750000 109374969 101562469 97656219 95703125 96679688 97167938 96923798 96801728 96740724 96771211 96755952 96748354 96752138 96750231 96749277 96748831 96749070 96749158 96749099 96749100 96749110 96749102 96749098 9674909...
output:
? 1 500000001 ? 2 500000001 ? 1 500000000 ? 250000001 500000001 ? 375000001 500000001 ? 437500001 500000001 ? 406250001 500000001 ? 390625001 500000001 ? 398437501 500000001 ? 402343751 500000001 ? 404296876 500000001 ? 403320313 500000001 ? 402832032 500000001 ? 403076172 500000001 ? 403198242 5000...
result:
ok ok (1000 test cases)
Test #19:
score: 0
Accepted
time: 55ms
memory: 3852kb
input:
1000 1000000000 474148191 474148190 474148192 250000000 349148191 286648191 255398191 239773191 242187501 238281251 237820066 237304688 237331785 237087645 237182617 237121582 237091064 237075805 237080016 237076202 237074295 237074851 237074374 237074135 237074176 237074117 237074105 237074102 2370...
output:
? 1 500000001 ? 2 500000001 ? 1 500000000 ? 250000001 500000001 ? 125000001 500000001 ? 187500001 500000001 ? 218750001 500000001 ? 234375001 500000001 ? 242187501 500000001 ? 238281251 500000001 ? 236328126 500000001 ? 237304688 500000001 ? 236816407 500000001 ? 237060547 500000001 ? 237182617 5000...
result:
ok ok (1000 test cases)
Test #20:
score: 0
Accepted
time: 66ms
memory: 3572kb
input:
1000 1000000000 230485382 230485383 230485381 249999930 124999930 167985382 136735382 121110382 117187430 117204132 115251007 116210867 115722586 115478445 115356375 115295340 115264822 115249563 115243378 115245748 115243841 115242887 115242902 115242664 115242767 115242707 115242677 115242662 1152...
output:
? 1 500000001 ? 2 500000001 ? 1 500000000 ? 500000001 750000001 ? 500000001 875000001 ? 500000001 937500001 ? 500000001 906250001 ? 500000001 890625001 ? 500000001 882812501 ? 500000001 886718751 ? 500000001 884765626 ? 500000001 883789064 ? 500000001 884277345 ? 500000001 884521486 ? 500000001 8846...
result:
ok ok (1000 test cases)
Test #21:
score: 0
Accepted
time: 64ms
memory: 3624kb
input:
1000 1000000000 288090905 288090906 288090906 250000000 329346805 266846805 256840905 251221805 249028405 247315555 247075280 246338992 246586999 246342859 246220789 246277956 246247438 246232179 246224550 246220735 246218882 246219781 246219304 246219066 246218947 246218887 246218857 246218868 2462...
output:
? 1 500000001 ? 2 500000001 ? 1 500000000 ? 500000001 750000001 ? 500000001 875000001 ? 500000001 937500001 ? 500000001 968750001 ? 500000001 953125001 ? 500000001 960937501 ? 500000001 957031251 ? 500000001 958984376 ? 500000001 958007814 ? 500000001 958496095 ? 500000001 958251955 ? 500000001 9581...
result:
ok ok (1000 test cases)
Test #22:
score: 0
Accepted
time: 67ms
memory: 3508kb
input:
1000 999999999 499999998 499999999 499999997 250000000 374999999 312499999 281250000 296874999 289062499 285156249 283203124 282226562 281738281 281494140 281372071 281433105 281402588 281387329 281379701 281383515 281381608 281380655 281381132 281381371 281381489 281381431 281381460 281381446 28138...
output:
? 1 500000000 ? 1 500000001 ? 2 500000000 ? 250000000 500000000 ? 125000000 500000000 ? 187500000 500000000 ? 218750000 500000000 ? 203125000 500000000 ? 210937500 500000000 ? 214843750 500000000 ? 216796875 500000000 ? 217773437 500000000 ? 218261718 500000000 ? 218505859 500000000 ? 218627929 5000...
result:
ok ok (1000 test cases)
Test #23:
score: 0
Accepted
time: 47ms
memory: 3568kb
input:
1000 999999999 499999957 499999956 499999957 249999957 125000000 187500000 218749957 203124957 195312457 191406207 189453082 188476520 187988282 188232380 188110353 188171388 188201863 188186604 188178975 188175203 188177068 188176157 188176591 188176353 188176234 188176174 188176144 188176147 18817...
output:
? 1 500000000 ? 1 500000001 ? 2 500000001 ? 500000001 750000001 ? 500000001 625000001 ? 500000001 687500001 ? 500000001 718750001 ? 500000001 703125001 ? 500000001 695312501 ? 500000001 691406251 ? 500000001 689453126 ? 500000001 688476564 ? 500000001 687988283 ? 500000001 688232424 ? 500000001 6881...
result:
ok ok (1000 test cases)
Test #24:
score: 0
Accepted
time: 60ms
memory: 3560kb
input:
1000 999999999 324545945 324545944 324545943 249999999 199545945 187499999 168295945 171874999 164062499 164389695 162436570 163085936 162597655 162353514 162314500 162292479 162283983 162277220 162276354 162273405 162274447 162273493 162273016 162273166 162273047 162272987 162272987 162272972 16227...
output:
? 1 500000000 ? 1 500000001 ? 2 500000001 ? 250000000 500000001 ? 125000000 500000001 ? 187500000 500000001 ? 156250000 500000001 ? 171875000 500000001 ? 164062500 500000001 ? 160156250 500000001 ? 162109375 500000001 ? 163085937 500000001 ? 162597656 500000001 ? 162353515 500000001 ? 162231445 5000...
result:
ok ok (1000 test cases)
Test #25:
score: 0
Accepted
time: 59ms
memory: 3628kb
input:
1000 999999999 487015083 487015084 487015084 249999934 362015084 299515084 268265084 252640084 244827584 246093684 244140559 243851022 243652277 243606882 243530206 243545847 243515330 243514947 243507701 243511132 243509224 243508270 243507793 243507555 243507582 243507523 243507525 243507510 24350...
output:
? 1 500000000 ? 1 500000001 ? 2 500000000 ? 500000000 750000001 ? 500000000 875000001 ? 500000000 812500001 ? 500000000 781250001 ? 500000000 765625001 ? 500000000 757812501 ? 500000000 753906251 ? 500000000 755859376 ? 500000000 756835939 ? 500000000 756347658 ? 500000000 756591799 ? 500000000 7564...
result:
ok ok (1000 test cases)
Test #26:
score: 0
Accepted
time: 72ms
memory: 3660kb
input:
1000 999999999 265285129 265285128 265285127 250000001 374264883 311764883 280514883 264889883 257472629 260983633 259030508 258053945 257565664 257321523 257350559 257289524 257291005 257275746 257281895 257278081 257276174 257275220 257275269 257275030 257275101 257275042 257275012 257275015 25727...
output:
? 1 500000000 ? 1 500000001 ? 2 500000001 ? 250000000 500000001 ? 125000000 500000001 ? 62500000 500000001 ? 31250000 500000001 ? 15625000 500000001 ? 7812500 500000001 ? 11718750 500000001 ? 9765625 500000001 ? 8789062 500000001 ? 8300781 500000001 ? 8056640 500000001 ? 7934570 500000001 ? 7995605 ...
result:
ok ok (1000 test cases)
Test #27:
score: 0
Accepted
time: 49ms
memory: 3628kb
input:
1000 536870912 261621269 261621270 261621268 127403541 67108864 93849109 77071893 75497472 79691776 78290725 77242149 76717861 76809749 76678677 76652325 76645909 76635941 76637717 76633621 76633893 76632869 76633109 76632853 76632741 76632789 76632757 76632741 76632733 76632737 76632735 76632734 1 ...
output:
? 1 268435457 ? 2 268435457 ? 1 268435456 ? 268435457 402653185 ? 268435457 335544321 ? 268435457 369098753 ? 268435457 352321537 ? 268435457 343932929 ? 268435457 348127233 ? 268435457 350224385 ? 268435457 351272961 ? 268435457 351797249 ? 268435457 352059393 ? 268435457 351928321 ? 268435457 3518...
result:
ok ok (1000 test cases)
Test #28:
score: 0
Accepted
time: 49ms
memory: 3788kb
input:
1000 536870911 244408485 244408484 244408485 134217728 182757401 210854053 194076837 185688229 181493925 180660249 180445349 180135961 180183205 180052133 180070425 180037657 180035749 180029465 180031653 180029605 180028581 180028953 180028697 180028569 180028517 180028537 180028521 180028513 18002...
output:
? 1 268435456 ? 1 268435457 ? 2 268435457 ? 268435457 402653185 ? 268435457 469762049 ? 268435457 503316481 ? 268435457 486539265 ? 268435457 478150657 ? 268435457 473956353 ? 268435457 471859201 ? 268435457 472907777 ? 268435457 472383489 ? 268435457 472645633 ? 268435457 472514561 ? 268435457 4724...
result:
ok ok (1000 test cases)
Extra Test:
score: 0
Extra Test Passed