Submission #1067504

#TimeUsernameProblemLanguageResultExecution timeMemory
1067504jsannemoCarnival (CEOI14_carnival)C++14
0 / 100
11 ms344 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...