# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
282106 | Pichon5 | Detecting Molecules (IOI16_molecules) | C++17 | 1 ms | 384 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "molecules.h"
#include <bits/stdc++.h>
#define vi vector<int>
using namespace std;
vector<int> find_subset(int l, int u,vector<int> w){
for(int i=0;i<(1<<w.size());i++){
vi vv;
for(int j=0;j<w.size();j++){
if(i&(1<<j)){
vv.push_back(w[j]);
}
}
int sum=0;
for(int ll=0;ll<vv.size();ll++){
sum+=vv[ll];
}
if(sum>=l && sum<=u){
return vv;
}
}
return vector<int>();
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |