Submission #969624

# Submission time Handle Problem Language Result Execution time Memory
969624 2024-04-25T11:16:01 Z KasymK Detecting Molecules (IOI16_molecules) C++17
0 / 100
0 ms 436 KB
#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

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 time Memory Grader output
1 Incorrect 0 ms 436 KB sum of weights should be in [10..12] but it is 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB sum of weights should be in [302..304] but it is 300
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 436 KB sum of weights should be in [10..12] but it is 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 436 KB sum of weights should be in [10..12] but it is 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 436 KB sum of weights should be in [10..12] but it is 9
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 436 KB sum of weights should be in [10..12] but it is 9
2 Halted 0 ms 0 KB -