# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
299353 | 2020-09-14T18:53:02 Z | APROHACK | Detecting Molecules (IOI16_molecules) | C++14 | 1 ms | 384 KB |
#include "molecules.h" #include <bits/stdc++.h> #define PB push_back using namespace std; vector<int> find_subset(int l, int u, vector<int> w) { vector<int>respuesta; sort(w.begin(), w.end()); long long sum=0, n=w.size(); for(int i = 0 ; i < n ; i ++){ sum+=w[i]; if(sum>=l&&sum<=u){ for(int j = 0 ; j <= i ; j ++)respuesta.PB(j+1); return respuesta; } if(sum>u)return respuesta; } //return std::vector<int>respuesta; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 1 ms | 256 KB | Integer 1 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 256 KB | Contestant can not find answer, jury can |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 1 ms | 256 KB | Integer 1 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 1 ms | 256 KB | Integer 1 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 1 ms | 256 KB | Integer 1 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 256 KB | OK (n = 1, answer = NO) |
2 | Correct | 1 ms | 384 KB | OK (n = 1, answer = NO) |
3 | Incorrect | 1 ms | 256 KB | Integer 1 violates the range [0, 0] |
4 | Halted | 0 ms | 0 KB | - |