Submission #504076

# Submission time Handle Problem Language Result Execution time Memory
504076 2022-01-09T16:21:40 Z Newtech66 Detecting Molecules (IOI16_molecules) C++17
0 / 100
0 ms 292 KB
#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 {};
}
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Contestant can not find answer, jury can
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -