QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#428663 | #7804. Intersegment Activation | JooDdae | AC ✓ | 13ms | 3672kb | C++20 | 811b | 2024-06-01 20:52:30 | 2024-06-01 20:52:32 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int n, k;
vector<int> v;
void find(int u) {
if(u == 0) {
v.push_back(0);
return;
}
find(u-1);
v.push_back(u);
find(u-1);
}
int query(int i, int j) {
cout << i << " " << j << endl;
int re; cin >> re;
if(re == n) exit(0);
return re;
}
int main() {
find(9);
cin.tie(0)->sync_with_stdio(0);
cin >> n >> k;
for(int i=1;i<=n;i++) {
int mx = k, mxb = 0, b = 0;
for(int j=0;j<(1<<n-i+1)-1;j++) {
auto re = query(i, i+v[j]);
b ^= 1 << v[j];
if(re > mx) mx = re, mxb = b;
}
for(int j=0;j<n-i+1;j++) if(((mxb >> j) & 1) != ((b >> j) & 1)) k = query(i, i+j);
}
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3524kb
input:
3 0 0 0 1 0 0 0 0 0 1 1 2 3
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 2 1 3 2 2 2 3 2 2
result:
ok OK, 12 queries
Test #2:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
1 0 1
output:
1 1
result:
ok OK, 1 queries
Test #3:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
2 1 2
output:
1 1
result:
ok OK, 1 queries
Test #4:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
2 0 0 1 0 1 2
output:
1 1 1 2 1 1 1 1 2 2
result:
ok OK, 5 queries
Test #5:
score: 0
Accepted
time: 1ms
memory: 3500kb
input:
2 0 1 0 0 0 1 2
output:
1 1 1 2 1 1 1 1 1 2 2 2
result:
ok OK, 6 queries
Test #6:
score: 0
Accepted
time: 1ms
memory: 3524kb
input:
2 0 0 1 2
output:
1 1 1 2 1 1
result:
ok OK, 3 queries
Test #7:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
3 0 0 0 0 2 3
output:
1 1 1 2 1 1 1 3 1 1
result:
ok OK, 5 queries
Test #8:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
3 0 0 0 0 0 1 0 0 0 1 1 2 1 2 3
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 2 2 2 2 3 2 2 2 2 3 3
result:
ok OK, 14 queries
Test #9:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
3 0 1 0 0 0 0 0 0 0 1 2 1 1 1 2 3
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 3 2 2 2 3 2 2 2 2 2 3 3 3
result:
ok OK, 15 queries
Test #10:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
3 0 0 0 0 1 1 2 3
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1
result:
ok OK, 7 queries
Test #11:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
4 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 2 1 1 1 1 1 2 2 3 2 3 4
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 3 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 3 2 4 3 3 3 4 3 3 3 3 4 4
result:
ok OK, 31 queries
Test #12:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
4 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1 2 1 1 1 2 2 3 2 3 4
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 2 1 3 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 2 2 3 3 3 3 4 3 3 3 3 4 4
result:
ok OK, 32 queries
Test #13:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
4 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 1 1 1 1 1 1 1 2 3 2 2 2 3 4
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 4 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 2 2 4 3 3 3 4 3 3 3 3 3 4 4 4
result:
ok OK, 32 queries
Test #14:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
4 0 0 0 0 0 0 0 0 1 1 1 1 2 2 3 4
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1
result:
ok OK, 15 queries
Test #15:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 3 2 2 2 2 2 2 2 3 3 4 3 4 5
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 5 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 2 1 4 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 5 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 2 2 3 2 5 3 3 3 4 3 3 3 5 3 3 3 4 3 3 3 3 3 5 4 4 4 5 4 4 4 4 5 5
result:
ok OK, 65 queries
Test #16:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 1 1 1 1 1 1 1 2 2 2 2 2 3 2 2 2 3 3 4 3 4 5
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 5 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 2 1 3 1 4 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 5 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 2 2 3 2 4 3 3 3 4 3 3 3 5 3 3 3 4 3 3 3 3 3 4 4 4 4 5 4 4 4 4 5 5
result:
ok OK, 67 queries
Test #17:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
5 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 3 2 2 2 2 2 2 2 3 4 3 3 3 4 5
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 5 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 1 1 5 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 5 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 2 2 5 3 3 3 4 3 3 3 5 3 3 3 4 3 3 3 3 3 5 4 4 4 5 4 4 4 4 4 5 5 5
result:
ok OK, 65 queries
Test #18:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 3 3 4 5
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 5 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1
result:
ok OK, 31 queries
Test #19:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 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 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 ...
result:
ok OK, 2076 queries
Test #65:
score: 0
Accepted
time: 1ms
memory: 3480kb
input:
10 9 10
output:
1 1
result:
ok OK, 1 queries
Test #66:
score: 0
Accepted
time: 6ms
memory: 3616kb
input:
10 9 8 7 7 6 6 6 6 5 5 5 5 5 5 5 5 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
output:
1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 5 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 6 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 5 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 7 1 1 1 2 1 1 1 3 1 1 1 2 1 1 1 4 1 1 1 2 1 1 ...
result:
ok OK, 2045 queries
Test #67:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
10 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1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