Submission #403261

#TimeUsernameProblemLanguageResultExecution timeMemory
403261MDarioDetecting Molecules (IOI16_molecules)C++11
19 / 100
1 ms300 KiB
#include "molecules.h" #include<bits/stdc++.h> using namespace std; std::vector<int> find_subset(int l, int u, vector<int> w){ vector<int> v; int c=1, s=w[0], n=w.size(); for(int i=0; i<n; i++){ while(s<l&&c<n){ s+=w[c]; c++; } if(l<=s&&s<=u){ for(int t=i; t<c; t++)v.push_back(t); break; } s-=w[i]; } return v; }
#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...