# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
63003 | 2018-07-31T09:11:26 Z | KHUSRAV | Detecting Molecules (IOI16_molecules) | C++14 | 6 ms | 860 KB |
#include "molecules.h" #include<bits/stdc++.h> using namespace std ; vector<int> find_subset(int l, int u, vector<int> w) { vector< vector<int> > v; vector<int> y ; int used[u + 1]; for(int i = 0 ; i <= u ; i++) used[i] = 0 ; y.push_back(0); v.push_back(y); for(int i = 0 ; i < w.size() ; i ++){ int q = v.size(); for(int j = 0 ; j < q ; j++){ vector<int> g = v[j]; if(g[0] + w[i] <= u){ g[0] += w[i]; g.push_back(i); if(used[g[0]] == 0){ used[g[0]] = 1 ; v.push_back(g); } if(g[0] >= l){ vector<int> k ; for(int j = 1 ; j < g.size() ; j ++) k.push_back(g[j]); return k; } } } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 6 ms | 632 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 3 ms | 760 KB | OK (n = 12, answer = YES) |
2 | Correct | 2 ms | 760 KB | OK (n = 12, answer = YES) |
3 | Runtime error | 3 ms | 860 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 6 ms | 632 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 6 ms | 632 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 6 ms | 632 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 6 ms | 632 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |