Submission #1020463

#TimeUsernameProblemLanguageResultExecution timeMemory
1020463mansurDetecting Molecules (IOI16_molecules)C++17
0 / 100
1 ms360 KiB
#include <bits/stdc++.h> #include "molecules.h" using namespace std; #define rall(s) s.rbegin(), s.rend() #define all(s) s.begin(), s.end() #define sz(s) (int)s.size() #define s second #define f first using ll = long long; using pii = pair<int, int>; using pll = pair<ll, ll>; vector<int> find_subset(int l, int u, vector<int> w) { int x = l - l % w[0] + w[0]; x /= w[0]; if (sz(w) < x || x * w[0] > u) return {}; vector<int> res; for (int i = 1; i <= x; i++) res.push_back(i); return res; }
#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...