# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1089864 | 2024-09-17T10:16:50 Z | Frostidian | Detecting Molecules (IOI16_molecules) | C++14 | 0 ms | 348 KB |
#include <bits/stdc++.h> using namespace std; vector < int > find_subset ( int l, int r, vector < int > isi ){ int sa = 0; vector < int > ans; for ( int i = 0; i < isi.size(); i++ ){ sa += isi[i]; ans.push_back(isi[i - 1]); if ( sa >= l && sa <= r ){ return ans; } } return vector < int > (0); } /* signed main(){ vector < int > isi {2, 2, 2, 2, 2}; vector < int > ans = find_subset ( 4, 4, isi ); for ( auto x : ans ) cout << x << endl; } */
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Incorrect | 0 ms | 348 KB | Integer 50 violates the range [0, 1] |
5 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 348 KB | Contestant can not find answer, jury can |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Incorrect | 0 ms | 348 KB | Integer 50 violates the range [0, 1] |
5 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Incorrect | 0 ms | 348 KB | Integer 50 violates the range [0, 1] |
5 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Incorrect | 0 ms | 348 KB | Integer 50 violates the range [0, 1] |
5 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
2 | Correct | 0 ms | 348 KB | OK (n = 1, answer = NO) |
3 | Correct | 0 ms | 348 KB | OK (n = 1, answer = YES) |
4 | Incorrect | 0 ms | 348 KB | Integer 50 violates the range [0, 1] |
5 | Halted | 0 ms | 0 KB | - |