Submission #257134

# Submission time Handle Problem Language Result Execution time Memory
257134 2020-08-03T15:59:51 Z a_player Carnival (CEOI14_carnival) C++14
0 / 100
94 ms 256 KB
#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+1<<" "<<j+1<<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 73 ms 256 KB Integer 19 violates the range [1, 11]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 80 ms 256 KB Integer 6 violates the range [1, 5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 67 ms 256 KB Partially correct
2 Incorrect 73 ms 256 KB Integer 11 violates the range [1, 8]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 80 ms 256 KB Integer 5 violates the range [1, 4]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 94 ms 256 KB Partially correct
2 Incorrect 87 ms 256 KB Integer 20 violates the range [1, 17]
3 Halted 0 ms 0 KB -