Submission #969624

#TimeUsernameProblemLanguageResultExecution timeMemory
969624KasymKDetecting Molecules (IOI16_molecules)C++17
0 / 100
0 ms436 KiB
#include "bits/stdc++.h" using namespace std; vector<int> find_subset(int l, int u, vector<int> w){ int div = u/w[0]; if(div > w.size()) return vector<int> {}; vector<int> ans; for(int i = 0; i < div; ++i) ans.push_back(i); return ans; }

Compilation message (stderr)

molecules.cpp: In function 'std::vector<int> find_subset(int, int, std::vector<int>)':
molecules.cpp:7:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |     if(div > w.size())
      |        ~~~~^~~~~~~~~~
#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...