| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1326619 | x_a | Detecting Molecules (IOI16_molecules) | C++20 | 1 ms | 332 KiB |
#include "molecules.h"
#include <bits/stdc++.h>
using namespace std;
using ll = int;
vector<int> find_subset(int l, int u, vector<int> w) {
vector<int> ans;
ll n = w.size(), x = 0;
ll curr = 0;
bool f = false;
for(ll k : w){
curr += k;
ans.push_back(x);
x ++;
if(curr >= l && curr <= u){
f = true;
break;
}
}
if(!f){
return vector<int>();
}
return ans;
}
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... | ||||
