# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
134854 | 2019-07-23T10:24:26 Z | reda | Detecting Molecules (IOI16_molecules) | C++14 | 2 ms | 504 KB |
#include<bits/stdc++.h> using namespace std ; #define pb push_back #define mp make_pair #define fi first #define se second vector<int>find_subset(int l, int u, vector<int> w) { vector<pair<int,int>>v; vector<int> ans; int n = w.size(); for(int i=0;i<n;i++) v.pb(mp(w[i],i)); if(v[0].fi>u)return ans; for(int i=0;i<n;i++) { int sum=v[i].fi; vector<int> hh; hh.pb(v[i].se); for(int j=0;j<n;j++) { if(i==j)continue; if(sum+v[j].fi>u)break; sum+=v[j].fi; hh.pb(v[j].se); } if(sum>=l)return hh; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 2 ms | 504 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |