Submission #1067504

# Submission time Handle Problem Language Result Execution time Memory
1067504 2024-08-20T18:41:57 Z jsannemo Carnival (CEOI14_carnival) C++14
0 / 100
11 ms 344 KB
#include <bits/stdc++.h>
using namespace std;

#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;

int main() {
	cin.tie(0)->sync_with_stdio(0);
	cin.exceptions(cin.failbit);

    int N;
    cin >> N;
    vi col(N);
    rep(i,0,N) {
        col[i] = i;
        rep(j,0,i) {
            cout << 2 << " " << (i + 1) << " " << (j + 1) << endl;
            int num;
            cin >> num;
            if (num == 1) {
                col[i] = j;
                break;
            }
        }
    }
    cout << 0;
    rep(i,0,N) cout << " " << (col[i] + 1);
    cout << endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 344 KB Integer 19 violates the range [1, 11]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 344 KB Integer 6 violates the range [1, 5]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 344 KB Output is correct
2 Incorrect 4 ms 344 KB Integer 11 violates the range [1, 8]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 344 KB Integer 5 violates the range [1, 4]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 344 KB Output is correct
2 Incorrect 11 ms 344 KB Integer 20 violates the range [1, 17]
3 Halted 0 ms 0 KB -