# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1203920 | arkanefury | Detecting Molecules (IOI16_molecules) | C++20 | 0 ms | 0 KiB |
#include "molecules.h"
using namespace std;
vector<int> find_subset(int l, int u, vector<int> w) {
int n = w.size();
int ans = 0;
vector<int>v;
for(int i = 0; i < n; i ++){
ans += w[i];
v.push_back(w[i]);
if(l <= ans && ans <= u)return v;
}
return ({0});
}