Submission #305674

# Submission time Handle Problem Language Result Execution time Memory
305674 2020-09-23T19:02:48 Z amunduzbaev Detecting Molecules (IOI16_molecules) C++14
0 / 100
1 ms 256 KB
#include "molecules.h"
#include <bits/stdc++.h>

using namespace std;
vector<int> find_subset(int l, int u, vector<int> a) {

    vector<int>ans;
    int sum=0,i=0;
    while(sum+a[i]<=u){
            ans.push_back(i);
        sum+=a[i];
        i++;
    }
    
    return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Integer 6 violates the range [0, 1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 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 1 ms 256 KB Integer 6 violates the range [0, 1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Integer 6 violates the range [0, 1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Integer 6 violates the range [0, 1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 256 KB Integer 6 violates the range [0, 1]
2 Halted 0 ms 0 KB -