# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
390415 | 2021-04-16T03:59:39 Z | marat0210 | Detecting Molecules (IOI16_molecules) | C++14 | 1 ms | 296 KB |
#include <bits/stdc++.h> #include "molecules.h" using namespace std; vector<int> find_subset(int l, int u, vector<int> w) { vector <int> res; int mi = l / w[0]; if (mi * w[0] < l and w.size() >= mi) { if (mi * w[0] + w[0] >= l and mi * w[0] + w[0] <= u and w.size() >= mi + 1) { for (int i = 0; i < mi + 1; ++i) { res.push_back(i); } return res; } } else if (mi * w[0] >= l and mi * w[0] <= u and w.size() >= mi) { for (int i = 0; i < mi; ++i) { res.push_back(i); } return res; } return vector<int>(); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 296 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 204 KB | OK (n = 1, answer = NO) |
3 | Correct | 1 ms | 204 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 296 KB | OK (n = 2, answer = YES) |
5 | Correct | 1 ms | 204 KB | OK (n = 2, answer = YES) |
6 | Correct | 1 ms | 296 KB | OK (n = 3, answer = YES) |
7 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
8 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
9 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
10 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
11 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
12 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
13 | Correct | 1 ms | 208 KB | OK (n = 3, answer = NO) |
14 | Correct | 1 ms | 208 KB | OK (n = 3, answer = YES) |
15 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
16 | Correct | 1 ms | 292 KB | OK (n = 3, answer = NO) |
17 | Correct | 1 ms | 204 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 204 KB | OK (n = 100, answer = NO) |
19 | Correct | 1 ms | 204 KB | OK (n = 100, answer = YES) |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | Contestant can not find answer, jury can |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 296 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 204 KB | OK (n = 1, answer = NO) |
3 | Correct | 1 ms | 204 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 296 KB | OK (n = 2, answer = YES) |
5 | Correct | 1 ms | 204 KB | OK (n = 2, answer = YES) |
6 | Correct | 1 ms | 296 KB | OK (n = 3, answer = YES) |
7 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
8 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
9 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
10 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
11 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
12 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
13 | Correct | 1 ms | 208 KB | OK (n = 3, answer = NO) |
14 | Correct | 1 ms | 208 KB | OK (n = 3, answer = YES) |
15 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
16 | Correct | 1 ms | 292 KB | OK (n = 3, answer = NO) |
17 | Correct | 1 ms | 204 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 204 KB | OK (n = 100, answer = NO) |
19 | Correct | 1 ms | 204 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 204 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 296 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 204 KB | OK (n = 1, answer = NO) |
3 | Correct | 1 ms | 204 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 296 KB | OK (n = 2, answer = YES) |
5 | Correct | 1 ms | 204 KB | OK (n = 2, answer = YES) |
6 | Correct | 1 ms | 296 KB | OK (n = 3, answer = YES) |
7 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
8 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
9 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
10 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
11 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
12 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
13 | Correct | 1 ms | 208 KB | OK (n = 3, answer = NO) |
14 | Correct | 1 ms | 208 KB | OK (n = 3, answer = YES) |
15 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
16 | Correct | 1 ms | 292 KB | OK (n = 3, answer = NO) |
17 | Correct | 1 ms | 204 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 204 KB | OK (n = 100, answer = NO) |
19 | Correct | 1 ms | 204 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 204 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 296 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 204 KB | OK (n = 1, answer = NO) |
3 | Correct | 1 ms | 204 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 296 KB | OK (n = 2, answer = YES) |
5 | Correct | 1 ms | 204 KB | OK (n = 2, answer = YES) |
6 | Correct | 1 ms | 296 KB | OK (n = 3, answer = YES) |
7 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
8 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
9 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
10 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
11 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
12 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
13 | Correct | 1 ms | 208 KB | OK (n = 3, answer = NO) |
14 | Correct | 1 ms | 208 KB | OK (n = 3, answer = YES) |
15 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
16 | Correct | 1 ms | 292 KB | OK (n = 3, answer = NO) |
17 | Correct | 1 ms | 204 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 204 KB | OK (n = 100, answer = NO) |
19 | Correct | 1 ms | 204 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 204 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 296 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 204 KB | OK (n = 1, answer = NO) |
3 | Correct | 1 ms | 204 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 296 KB | OK (n = 2, answer = YES) |
5 | Correct | 1 ms | 204 KB | OK (n = 2, answer = YES) |
6 | Correct | 1 ms | 296 KB | OK (n = 3, answer = YES) |
7 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
8 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
9 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
10 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
11 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
12 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
13 | Correct | 1 ms | 208 KB | OK (n = 3, answer = NO) |
14 | Correct | 1 ms | 208 KB | OK (n = 3, answer = YES) |
15 | Correct | 1 ms | 204 KB | OK (n = 3, answer = YES) |
16 | Correct | 1 ms | 292 KB | OK (n = 3, answer = NO) |
17 | Correct | 1 ms | 204 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 204 KB | OK (n = 100, answer = NO) |
19 | Correct | 1 ms | 204 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 204 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |