#include<bits/stdc++.h>
using namespace std;
vector<int> find_subset(int l,int u,vector<int> w)
{
int n=w.size();
for(int i=0;i<n;i++)
{
if(l<=w[i] && w[i]<=u)
{
return {i};
}
}
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if(l<=w[i]+w[j] && w[i]+w[j]<=u)
{
return {i,j};
}
}
}
return {};
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = NO) |
2 |
Correct |
0 ms |
288 KB |
OK (n = 1, answer = NO) |
3 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = YES) |
4 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
5 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
6 |
Correct |
0 ms |
204 KB |
OK (n = 3, answer = YES) |
7 |
Incorrect |
0 ms |
204 KB |
Contestant can not find answer, jury can |
8 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Contestant can not find answer, jury can |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = NO) |
2 |
Correct |
0 ms |
288 KB |
OK (n = 1, answer = NO) |
3 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = YES) |
4 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
5 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
6 |
Correct |
0 ms |
204 KB |
OK (n = 3, answer = YES) |
7 |
Incorrect |
0 ms |
204 KB |
Contestant can not find answer, jury can |
8 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = NO) |
2 |
Correct |
0 ms |
288 KB |
OK (n = 1, answer = NO) |
3 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = YES) |
4 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
5 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
6 |
Correct |
0 ms |
204 KB |
OK (n = 3, answer = YES) |
7 |
Incorrect |
0 ms |
204 KB |
Contestant can not find answer, jury can |
8 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = NO) |
2 |
Correct |
0 ms |
288 KB |
OK (n = 1, answer = NO) |
3 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = YES) |
4 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
5 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
6 |
Correct |
0 ms |
204 KB |
OK (n = 3, answer = YES) |
7 |
Incorrect |
0 ms |
204 KB |
Contestant can not find answer, jury can |
8 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = NO) |
2 |
Correct |
0 ms |
288 KB |
OK (n = 1, answer = NO) |
3 |
Correct |
0 ms |
292 KB |
OK (n = 1, answer = YES) |
4 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
5 |
Correct |
0 ms |
204 KB |
OK (n = 2, answer = YES) |
6 |
Correct |
0 ms |
204 KB |
OK (n = 3, answer = YES) |
7 |
Incorrect |
0 ms |
204 KB |
Contestant can not find answer, jury can |
8 |
Halted |
0 ms |
0 KB |
- |