Submission #908820

# Submission time Handle Problem Language Result Execution time Memory
908820 2024-01-16T23:32:14 Z vjudge1 Carnival (CEOI14_carnival) C++17
0 / 100
4 ms 344 KB
#include<bits/stdc++.h>
using namespace std;

int n;
int ans[130];

int main(){
    cin >> n; int x; int cont=1;
    for(int i=1; i<=n; i++){
        if(!ans[i])ans[i]=cont;
        else continue;
        for(int j=i+1; j<=n; j++){
            if(ans[j])continue;
            cout << 2 << " " << i << " " << j << endl;
            cin >> x; if(x==1)ans[j]=cont;
        }cont++;
    }
    cout << 0 << " ";
    for(int i=1; i<=n; i++)cout << ans[i] << " ";
    cout << endl;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 344 KB Integer 137 violates the range [1, 11]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 344 KB Integer 145 violates the range [1, 5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Integer 133 violates the range [1, 1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 344 KB Integer 143 violates the range [1, 4]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Integer 149 violates the range [1, 2]
2 Halted 0 ms 0 KB -