# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
617182 | 2022-08-01T09:24:36 Z | 조영욱(#8505) | Chameleon's Love (JOI20_chameleon) | C++17 | 220 ms | 524288 KB |
#include "chameleon.h" #include <bits/stdc++.h> using namespace std; namespace { int variable_example = 1; int n; void solve(vector<int> v) { if (v.size()==2) { Answer(v[0],v[1]); return; } int n=v.size()/2; vector<int> v1; vector<int> v2; for(int i=0;i<v.size();i++) { v1.push_back(v[i]); if (Query(v1)>n/2) { v1.pop_back(); v2.push_back(v[i]); } } solve(v1); solve(v2); } } // namespace void Solve(int N) { n=N; vector<int> v; for(int i=1;i<=n*2;i++) { v.push_back(i); } solve(v); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 260 KB | Output is correct |
2 | Correct | 0 ms | 208 KB | Output is correct |
3 | Correct | 12 ms | 208 KB | Output is correct |
4 | Correct | 14 ms | 208 KB | Output is correct |
5 | Correct | 13 ms | 332 KB | Output is correct |
6 | Correct | 12 ms | 336 KB | Output is correct |
7 | Correct | 12 ms | 324 KB | Output is correct |
8 | Correct | 14 ms | 332 KB | Output is correct |
9 | Correct | 14 ms | 328 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 208 KB | Output is correct |
2 | Runtime error | 220 ms | 524288 KB | Execution killed with signal 9 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 208 KB | Output is correct |
2 | Runtime error | 220 ms | 524288 KB | Execution killed with signal 9 |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 208 KB | Output is correct |
2 | Incorrect | 1 ms | 208 KB | Wrong Answer [6] |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 260 KB | Output is correct |
2 | Correct | 0 ms | 208 KB | Output is correct |
3 | Correct | 12 ms | 208 KB | Output is correct |
4 | Correct | 14 ms | 208 KB | Output is correct |
5 | Correct | 13 ms | 332 KB | Output is correct |
6 | Correct | 12 ms | 336 KB | Output is correct |
7 | Correct | 12 ms | 324 KB | Output is correct |
8 | Correct | 14 ms | 332 KB | Output is correct |
9 | Correct | 14 ms | 328 KB | Output is correct |
10 | Correct | 1 ms | 208 KB | Output is correct |
11 | Runtime error | 220 ms | 524288 KB | Execution killed with signal 9 |
12 | Halted | 0 ms | 0 KB | - |