# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
108207 | 2019-04-28T05:39:29 Z | tictaccat | Detecting Molecules (IOI16_molecules) | C++14 | 2 ms | 384 KB |
#include "molecules.h" #include <bits/stdc++.h> using namespace std; std::vector<int> find_subset(int l, int u, std::vector<int> w) { int n = w.size(); vector<int> res; int s = 0; while (s + w[0] <= u && res.size() < n) { s += w[0]; res.push_back(w[0]); } if (s >= l) return res; return std::vector<int>(); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
2 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 2 ms | 256 KB | Integer 10 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 384 KB | Contestant can not find answer, jury can |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
2 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 2 ms | 256 KB | Integer 10 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
2 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 2 ms | 256 KB | Integer 10 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
2 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 2 ms | 256 KB | Integer 10 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
2 | Correct | 2 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 2 ms | 256 KB | Integer 10 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |