제출 #443844

#제출 시각아이디문제언어결과실행 시간메모리
443844fuad27Detecting Molecules (IOI16_molecules)C++14
0 / 100
47 ms65540 KiB
#include "molecules.h" #include<bits/stdc++.h> using namespace std; vector<int> v; bool f(int n, int l, int u, vector<int> w) { if(n == -1 and 0 >= l and 0 <= u){ v.push_back(n); return true; } if(f(n-1, l-w[n], u - w[n], w)) { v.push_back(n); return true; } return f(n-1, l, u, w); } vector<int> find_subset(int l, int u, vector<int> w) { int n = w.size(); if(f(n-1, l, u, w))return v; else return {}; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...