# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1203920 | arkanefury | Detecting Molecules (IOI16_molecules) | C++20 | 0 ms | 0 KiB |
#include "molecules.h"
using namespace std;
vector<int> find_subset(int l, int u, vector<int> w) {
int n = w.size();
int ans = 0;
vector<int>v;
for(int i = 0; i < n; i ++){
ans += w[i];
v.push_back(w[i]);
if(l <= ans && ans <= u)return v;
}
return ({0});
}