# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
904916 | 2024-01-12T11:01:57 Z | dsyz | Carnival (CEOI14_carnival) | C++17 | 1 ms | 344 KB |
#include <bits/stdc++.h> using namespace std; using ll = long long; #define MAXN (1000005) int main() { ios_base::sync_with_stdio(false);cin.tie(0); ll N; cin>>N; vector<ll> unique; //exactly 1 representative from all different type of costumes for(ll i = 1;i <= N;i++){ //1-indexed cout<<unique.size() + 1<<" "; for(auto u : unique){ cout<<u<<" "; } cout<<i<<endl; ll diff; cin>>diff; if(diff == unique.size() + 1){ unique.push_back(i); } } cout<<0<<" "; for(ll i = 0;i < N;i++){ cout<<i + 1<<" "; } cout<<endl; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Integer 12 violates the range [1, 11] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Integer 6 violates the range [1, 5] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Integer 2 violates the range [1, 1] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Integer 5 violates the range [1, 4] |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 344 KB | Integer 3 violates the range [1, 2] |
2 | Halted | 0 ms | 0 KB | - |