# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1068277 | 2024-08-21T09:03:54 Z | quangminh412 | Detecting Molecules (IOI16_molecules) | C++14 | 1 ms | 436 KB |
#include <bits/stdc++.h> using namespace std; /* John Watson https://codeforces.com/profile/quangminh98 Mua Code nhu mua Florentino !! */ #define faster() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); #define ll long long vector<int> solve_1(int l, int u, vector<int> w) { vector<int> ans; int cur = 0; for (int i = 0; i < w.size(); i++) { cur += w[i]; ans.push_back(i); if (l <= cur && cur <= u) return ans; } return {}; } vector<int> find_subset(int l, int u, vector<int> w) { // sub1 bool sub1 = true; for (int i = 1; i < w.size(); i++) if (w[i] != w[i - 1]) sub1 = false; if (sub1 == true) return solve_1(l, u, w); // sub2 }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 344 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 348 KB | OK (n = 2, answer = YES) |
5 | Correct | 0 ms | 348 KB | OK (n = 2, answer = YES) |
6 | Correct | 0 ms | 392 KB | OK (n = 3, answer = YES) |
7 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
8 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
9 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
10 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
11 | Correct | 0 ms | 436 KB | OK (n = 3, answer = YES) |
12 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
13 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
14 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
15 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
16 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
17 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 348 KB | OK (n = 100, answer = NO) |
19 | Correct | 0 ms | 348 KB | OK (n = 100, answer = YES) |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 348 KB | Contestant can not find answer, jury can |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 344 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 348 KB | OK (n = 2, answer = YES) |
5 | Correct | 0 ms | 348 KB | OK (n = 2, answer = YES) |
6 | Correct | 0 ms | 392 KB | OK (n = 3, answer = YES) |
7 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
8 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
9 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
10 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
11 | Correct | 0 ms | 436 KB | OK (n = 3, answer = YES) |
12 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
13 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
14 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
15 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
16 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
17 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 348 KB | OK (n = 100, answer = NO) |
19 | Correct | 0 ms | 348 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 348 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 344 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 348 KB | OK (n = 2, answer = YES) |
5 | Correct | 0 ms | 348 KB | OK (n = 2, answer = YES) |
6 | Correct | 0 ms | 392 KB | OK (n = 3, answer = YES) |
7 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
8 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
9 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
10 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
11 | Correct | 0 ms | 436 KB | OK (n = 3, answer = YES) |
12 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
13 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
14 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
15 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
16 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
17 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 348 KB | OK (n = 100, answer = NO) |
19 | Correct | 0 ms | 348 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 348 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 344 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 348 KB | OK (n = 2, answer = YES) |
5 | Correct | 0 ms | 348 KB | OK (n = 2, answer = YES) |
6 | Correct | 0 ms | 392 KB | OK (n = 3, answer = YES) |
7 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
8 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
9 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
10 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
11 | Correct | 0 ms | 436 KB | OK (n = 3, answer = YES) |
12 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
13 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
14 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
15 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
16 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
17 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 348 KB | OK (n = 100, answer = NO) |
19 | Correct | 0 ms | 348 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 348 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 344 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 344 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Correct | 1 ms | 348 KB | OK (n = 2, answer = YES) |
5 | Correct | 0 ms | 348 KB | OK (n = 2, answer = YES) |
6 | Correct | 0 ms | 392 KB | OK (n = 3, answer = YES) |
7 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
8 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
9 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
10 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
11 | Correct | 0 ms | 436 KB | OK (n = 3, answer = YES) |
12 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
13 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
14 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
15 | Correct | 0 ms | 348 KB | OK (n = 3, answer = YES) |
16 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
17 | Correct | 0 ms | 348 KB | OK (n = 3, answer = NO) |
18 | Correct | 1 ms | 348 KB | OK (n = 100, answer = NO) |
19 | Correct | 0 ms | 348 KB | OK (n = 100, answer = YES) |
20 | Incorrect | 1 ms | 348 KB | Contestant can not find answer, jury can |
21 | Halted | 0 ms | 0 KB | - |