제출 #1016008

#제출 시각아이디문제언어결과실행 시간메모리
1016008deeraDetecting Molecules (IOI16_molecules)C++14
0 / 100
0 ms600 KiB
#include <bits/stdc++.h> #include "molecules.h" using namespace std; typedef long long ll; vector<int> find_subset(int l, int u, vector<int> w) { int n = w.size(); vector<int> empty; int mn = INT_MAX, mx = 0; for(auto i: w) { mn = min(i, mn); mx = max(i, mx); } // substask 1 if (mn == mx) { int a = (u % w[0]); if (a <= n && l <= a*w[0] && a*w[0] <= u) { vector<int> r; for(int i=0;i<a;i++) { r.push_back(i); } return r; } else { return empty; } } return empty; }
#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...