#include <iostream>
#include <algorithm>
#include <vector>
#define int long long
using namespace std;
const int NMAX=1e6+505;
int n,k,q,T;
void read(int ind)
{
for (int i=1;i<=n;++i)
{
int x;
cin>>x;
}
}
signed main()
{
cin>>n>>k>>q>>T;
read(0);
read(1);
for (int i=1;i<=k;++i)
{
cout<<i<<" ";
}
cout<<'\n';
for (int i=1;i<k;++i)
{
cout<<"? "<<i<<" "<<i+1<<'\n';
}
cout<<"!"<<'\n';
cout.flush();
for (int i=1;i<k;++i)
{
int x;
cin>>x>>x>>x>>x;
}
for (int i=1;i<=T;++i)
{
int x,y;
cin>>x>>y;
}
for (int i=1;i<=T;++i)
cout<<1<<" "<<1<<'\n';
cout.flush();
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
289 ms |
600 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
316 ms |
416 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
184 ms |
408 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
394 ms |
412 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
498 ms |
400 KB |
Execution killed with signal 13 |
2 |
Halted |
0 ms |
0 KB |
- |