제출 #403265

#제출 시각아이디문제언어결과실행 시간메모리
403265MDarioDetecting Molecules (IOI16_molecules)C++11
9 / 100
1 ms332 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(); sort(w.begin(), w.end()); 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...