Submission #41239

# Submission time Handle Problem Language Result Execution time Memory
41239 2018-02-15T05:04:58 Z Talant Detecting Molecules (IOI16_molecules) C++14
0 / 100
2 ms 356 KB
#include <bits/stdc++.h>
#include "molecules.h"

using namespace std;

vector<int> find_subset(int l, int u, vector<int> w) {
        int sum = (int)w.size() * w[0];
        int cnt = (int)w.size();

        while (sum > u) {
                sum -= w[0];
                cnt --;
        }
        vector <int> vec;

        for (int i = 0; i < cnt; i ++)
                vec.push_back(i);
        return vec;
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 248 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 1 ms 356 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 2 ms 248 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 2 ms 248 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 2 ms 248 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 2 ms 248 KB sum of weights should be in [10..12] but it is 9
2 Halted 0 ms 0 KB -