Submission #969255

#TimeUsernameProblemLanguageResultExecution timeMemory
969255KasymKDetecting Molecules (IOI16_molecules)C++17
9 / 100
1 ms600 KiB
#include "bits/stdc++.h" using namespace std; vector<int> find_subset(int l, int u, vector<int> w){ int n = (int)w.size(); vector<int> ans; int sum = 0; int id = -1; for(int i = 0; i < n; ++i){ sum += w[i]; if(sum >= l){ id = i; break; } } if(sum <= u and ~id) for(int i = 0; i <= id; ++i) ans.push_back(i); return ans; }
#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...