Submission #257137

# Submission time Handle Problem Language Result Execution time Memory
257137 2020-08-03T16:05:01 Z a_player Carnival (CEOI14_carnival) C++14
20 / 100
93 ms 256 KB
#include <bits/stdc++.h>

using namespace std;
const int nax=150+5;
int col[nax];

int main(){
    int N;
    cin>>N;
    int ind=1;
    for(int i=0;i<N;i++){
        if(!col[i]){col[i]=ind;
        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]=ind;
        }
        ind++;
    }
    }
    cout<<"0 ";
    for(int i=0;i<N;i++)cout<<col[i]<<" ";

}
# Verdict Execution time Memory Grader output
1 Correct 14 ms 256 KB Output is correct
2 Partially correct 31 ms 256 KB Partially correct
3 Partially correct 63 ms 256 KB Partially correct
4 Partially correct 77 ms 256 KB Partially correct
5 Correct 3 ms 256 KB Output is correct
6 Correct 4 ms 256 KB Output is correct
7 Correct 24 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 27 ms 256 KB Output is correct
3 Partially correct 37 ms 256 KB Partially correct
4 Partially correct 80 ms 256 KB Partially correct
5 Correct 10 ms 256 KB Output is correct
6 Correct 11 ms 256 KB Output is correct
7 Correct 17 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 256 KB Output is correct
2 Correct 9 ms 256 KB Output is correct
3 Partially correct 44 ms 256 KB Partially correct
4 Partially correct 93 ms 256 KB Partially correct
5 Correct 19 ms 256 KB Output is correct
6 Correct 23 ms 256 KB Output is correct
7 Partially correct 39 ms 256 KB Partially correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 8 ms 256 KB Output is correct
3 Partially correct 84 ms 256 KB Partially correct
4 Partially correct 88 ms 256 KB Partially correct
5 Partially correct 33 ms 256 KB Partially correct
6 Partially correct 47 ms 256 KB Partially correct
7 Partially correct 29 ms 256 KB Partially correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 256 KB Output is correct
2 Correct 18 ms 256 KB Output is correct
3 Partially correct 63 ms 256 KB Partially correct
4 Partially correct 75 ms 256 KB Partially correct
5 Partially correct 46 ms 256 KB Partially correct
6 Partially correct 58 ms 256 KB Partially correct
7 Partially correct 63 ms 256 KB Partially correct