Submission #555939

#TimeUsernameProblemLanguageResultExecution timeMemory
555939pere_gilDetecting Molecules (IOI16_molecules)C++14
9 / 100
1 ms300 KiB
#include "molecules.h" #include "bits/stdc++.h" using namespace std; vector<int> find_subset(int l, int r, vector<int> w) { int n=w.size(); vector<int> res; int sum=0; for(int i=0;i<n;i++) if(sum+w[i]<=r){ sum+=w[i]; res.push_back(i); } else break; if(sum<l) res.clear(); return res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...