제출 #485195

#제출 시각아이디문제언어결과실행 시간메모리
485195couplefireDetecting Molecules (IOI16_molecules)C++17
0 / 100
0 ms204 KiB
#include <bits/stdc++.h> using namespace std; vector<int> find_subset(int l, int r, vector<int> w){ vector<int> id(w.size()); iota(id.begin(), id.end(), 0); sort(id.begin(), id.end(), [&](int a, int b){return w[a]<w[b];}); if(r<w[id[0]]) return {}; vector<int> res; reverse(id.begin(), id.end()); while(l>0) res.push_back(id.back()), l -= w[id.back()], id.pop_back(); 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...