Submission #588880

#TimeUsernameProblemLanguageResultExecution timeMemory
588880mahra_IOIDetecting Molecules (IOI16_molecules)C++17
9 / 100
1 ms212 KiB
#include "molecules.h"
#include <bits/stdc++.h>
using namespace std;
 
std::vector<int> find_subset(int l, int u, std::vector<int> w) {
    int n = w.size();
    for(int take = 1 ; take <= n;take++){
            if(take * w[0] >= l && take * w[0] <= u){
                vector< int > ans;
                for(int j = 0 ;j < take;j++)
                    ans.push_back(j);
                return ans;
            }
    }
    return std::vector<int>(0);
}
#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...