#include <bits/stdc++.h>
using namespace std;
const int nax=150+5;
int col[nax];
int main(){
int N;
cin>>N;
for(int i=0;i<N;i++){
if(!col[i])col[i]=i+1;
for(int j=i+1;j<N;j++){
cout<<"2 "<<i<<" "<<j<<endl;
int h;
cin>>h;
if(h==1&&!col[j])col[j]=i+1;
}
}
cout<<"0 ";
for(int i=0;i<N;i++)cout<<col[i]<<" ";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Integer 0 violates the range [1, 137] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Integer 0 violates the range [1, 145] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Integer 0 violates the range [1, 133] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Integer 0 violates the range [1, 143] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Integer 0 violates the range [1, 149] |
2 |
Halted |
0 ms |
0 KB |
- |