QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#371200 | #7804. Intersegment Activation | kevinyang# | AC ✓ | 12ms | 3964kb | C++17 | 1.7kb | 2024-03-30 01:52:11 | 2024-03-30 01:52:12 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
int query(pair<int,int>a){
cout << a.first << ' ' << a.second << endl;
int x;
cin >> x;
return x;
}
signed main(){
cin.tie(nullptr)->sync_with_stdio(false);
int n;
cin >> n;
int k;
cin >> k;
if(k==n)return 0;
vector<int>a;
a.push_back(0);
for(int i = 1; i<13; i++){
vector<int>b;
for(int nxt: a){
b.push_back(nxt);
}
b.push_back(i);
for(int nxt: a){
b.push_back(nxt);
}
swap(a,b);
}
for(int i = 1; i<=n; i++){
if(k==n)return 0;
vector<pair<int,int>>vals;
for(int j = i; j<=n; j++){
vals.push_back({i,j});
}
int v = query(vals[a[0]]);
if(v==n)return 0;
if(v > k){
k = v;
continue;
}
if(v==k-1){
int v3 = query(vals[a[0]]);
if(v3==n){
return 0;
}
k = v3;
continue;
}
else{
k = v;
}
int cur = 1;
while(true){
int v = query(vals[a[cur]]);
if(v==n){
return 0;
}
if(cur%2 == 0){
if(v > k){
k = v;
break;
}
if(v < k){
int v3 = query(vals[0]);
if(v3==n){
return 0;
}
k = v3;
break;
}
}
k = v;
cur++;
}
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3676kb
input:
3 0 0 0 1 1 2 3
output:
1 1 1 2 1 1 2 2 2 3 2 2
result:
ok OK, 6 queries
Test #2:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
1 0 1
output:
1 1
result:
ok OK, 1 queries
Test #3:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
2 1 2
output:
1 1
result:
ok OK, 1 queries
Test #4:
score: 0
Accepted
time: 1ms
memory: 3892kb
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: 0ms
memory: 3716kb
input:
2 0 1 2
output:
1 1 2 2
result:
ok OK, 2 queries
Test #6:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
2 0 0 1 2
output:
1 1 1 2 1 1
result:
ok OK, 3 queries
Test #7:
score: 0
Accepted
time: 1ms
memory: 3760kb
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: 1ms
memory: 3620kb
input:
3 0 0 0 0 0 1 1 2 1 2 3
output:
1 1 1 2 1 1 1 3 1 1 2 2 2 3 2 2 2 2 3 3
result:
ok OK, 10 queries
Test #9:
score: 0
Accepted
time: 1ms
memory: 3912kb
input:
3 0 1 2 3
output:
1 1 2 2 3 3
result:
ok OK, 3 queries
Test #10:
score: 0
Accepted
time: 1ms
memory: 3744kb
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: 3744kb
input:
4 0 0 0 0 0 0 0 0 0 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 2 2 2 3 2 2 3 3 3 4 3 3 3 3 4 4
result:
ok OK, 17 queries
Test #12:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
4 0 0 0 0 0 0 0 0 0 0 1 0 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 1 2 2 2 3 2 2 2 4 2 2 3 3 3 4 3 3 3 3 4 4
result:
ok OK, 22 queries
Test #13:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
4 0 1 2 3 4
output:
1 1 2 2 3 3 4 4
result:
ok OK, 4 queries
Test #14:
score: 0
Accepted
time: 1ms
memory: 3672kb
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: 3896kb
input:
5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 2 1 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 2 2 2 3 2 2 2 2 3 3 4 4 4 5 4 4 4 4 5 5
result:
ok OK, 29 queries
Test #16:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
5 0 0 0 0 0 0 0 0 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 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 2 2 2 3 2 2 2 4 2 2 2 3 2 2 2 5 2 2 2 3 2 2 2 2 3 3 3 4 3 3 3 5 3 3 4 4 4 5 4 4 4 4 5 5
result:
ok OK, 43 queries
Test #17:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
5 0 1 2 3 4 5
output:
1 1 2 2 3 3 4 4 5 5
result:
ok OK, 5 queries
Test #18:
score: 0
Accepted
time: 1ms
memory: 3912kb
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: 3720kb
input:
6 0 0 0 0 0 0 0 0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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 7 2 2 2 3 2 2 2 4 ...
result:
ok OK, 131 queries
Test #24:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
7 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
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, 172 queries
Test #25:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
7 0 1 2 3 4 5 6 7
output:
1 1 2 2 3 3 4 4 5 5 6 6 7 7
result:
ok OK, 7 queries
Test #26:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
7 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 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 0 0 1 1 1 1 1 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 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, 208 queries
Test #28:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
8 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 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 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 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 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 ...
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, 344 queries
Test #29:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
8 0 1 2 3 4 5 6 7 8
output:
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8
result:
ok OK, 8 queries
Test #30:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
8 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 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, 534 queries
Test #32:
score: 0
Accepted
time: 1ms
memory: 3896kb
input:
9 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 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 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 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 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 ...
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, 685 queries
Test #33:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
9 0 1 2 3 4 5 6 7 8 9
output:
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9
result:
ok OK, 9 queries
Test #34:
score: 0
Accepted
time: 3ms
memory: 3668kb
input:
9 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 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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 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, 1442 queries
Test #36:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
10 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 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 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 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 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...
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, 1369 queries
Test #37:
score: 0
Accepted
time: 1ms
memory: 3960kb
input:
10 0 1 2 3 4 5 6 7 8 9 10
output:
1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10
result:
ok OK, 10 queries
Test #38:
score: 0
Accepted
time: 6ms
memory: 3676kb
input:
10 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 0 0 0 0 0 0 0 0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 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, 1369 queries
Test #64:
score: 0
Accepted
time: 8ms
memory: 3696kb
input:
10 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 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 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 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 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...
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, 1304 queries
Test #65:
score: 0
Accepted
time: 1ms
memory: 3964kb
input:
10 9 10
output:
1 1
result:
ok OK, 1 queries
Test #66:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
10 9 8 9 8 9 8 9 8 9 8 9 8 9 8 9 8 9 8 9 10
output:
1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10
result:
ok OK, 19 queries
Test #67:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
10 1 1 1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