# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
233844 | 2020-05-21T21:57:51 Z | jam_xd_ | Detecting Molecules (IOI16_molecules) | C++17 | 5 ms | 256 KB |
#include "molecules.h" #include "bits/stdc++.h" using namespace std; vector<int> find_subset(int l, int u, vector<int> w) { int gg = w[0], funcionaaa = w.size(), sum = gg; bool afirmo; vector<int>covid; vector<pair<int,int> >nada(funcionaaa); for (int i=0;i<funcionaaa;i++){ nada[i].first = w[i]; nada[i].second = i; } //sort(nada.begin(), nada.end()); //no sirve si todos son iguales :v for(int i=0;i<funcionaaa;i++){ if(sum + nada[i].first <= u){ sum = sum + nada[i].first; covid.push_back(nada[i].second); } if(sum >= l){ return covid;//nada } } //covid.clear(); return covid; } //:v ?? //wEy Ya :"v aiuda xd SOLO QUIERO 9 PUNTOS >:V
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 5 ms | 256 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 4 ms | 256 KB | Contestant can not find answer, jury can |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 256 KB | sum of weights should be in [302..304] but it is 250 |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 5 ms | 256 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 4 ms | 256 KB | Contestant can not find answer, jury can |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 5 ms | 256 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 4 ms | 256 KB | Contestant can not find answer, jury can |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 5 ms | 256 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 4 ms | 256 KB | Contestant can not find answer, jury can |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 5 ms | 256 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 4 ms | 256 KB | Contestant can not find answer, jury can |
4 | Halted | 0 ms | 0 KB | - |