| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 1259379 | sofpp | Detecting Molecules (IOI16_molecules) | C++20 | 0 ms | 328 KiB | 
#include <bits/stdc++.h>
#include "molecules.h"
using namespace std;
std::vector<int> find_subset(int l, int u, std::vector<int> w){
    //wi =
    vector<int> answer, d;
    int tw, cnt=0, idx=0, n=w.size();
    tw=n*w[0];
    //cout<<"YES HERE: "<<(u-l+1)<<" "<<tw<<endl;
    if(l>tw) return answer;
    while(cnt<l){
        answer.emplace_back(idx);
        idx++;
        cnt+=w[0];
    }
    if(cnt>u) return d;
    return answer;
}
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... | ||||
