# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1004957 | Mardonbekhazratov | Detecting Molecules (IOI16_molecules) | C++17 | 1 ms | 348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "molecules.h"
#include<bits/stdc++.h>
using namespace std;
int n;
vector<int>ans;
vector<int>sub1(int l,int u,vector<int>&w){
if((l+w[0])/w[0]*w[0]>u || (l+w[0])/w[0]>n) return vector<int>(0);
return vector<int>(u/w[0],w[0]);
}
vector<int> find_subset(int l, int u, vector<int> w) {
n=(int)w.size();
sort(w.begin(),w.end());
if(w[0]==w[n-1]) return sub1(l,u,w);
}
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... |