Submission #621440

#TimeUsernameProblemLanguageResultExecution timeMemory
621440kkkkkkkkDetecting Molecules (IOI16_molecules)C++14
9 / 100
1 ms300 KiB
#include <bits/stdc++.h> using namespace std; vector<int> find_subset(int l,int u,vector<int> w) { int n=w.size(); vector<int> rez; int p=l/w[0]; if (p*w[0]==l&&p<=n) for (int i=0;i<p;i++) rez.push_back(i); else if ((p+1)*w[0]>=l&&(p+1)*w[0]<=u&&p+1<=n) for (int i=0;i<=p;i++) rez.push_back(i); return rez; }
#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...