# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
474717 | AnasBenMoussa | Detecting Molecules (IOI16_molecules) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "molecules.h"
std::vector<int> find_subset(int l, int u, std::vector<int> w) {
int df=u-l;
vector<int>v(df/w[0]);
if(df/w[0]>w.size()){
return 0;
}
else{
for(int i=0;i<df/w[0];i++){
v[i]=w[0];
}
}
return v;
}