Submission #730982

# Submission time Handle Problem Language Result Execution time Memory
730982 2023-04-26T17:33:13 Z murad_2005 CONSUL (info1cup19_consul) C++14
0.116806 / 100
48 ms 256 KB
#include "grader.h"
#include <bits/stdc++.h>

using namespace std;

void solve(int n)
{
    for(int i = 0; i < 60; ++i){
        int x = rand() % n + 1;
        int val = kth(x);
        if(cnt(val) > (n / 3)){
            say_answer(val);
            return;
        }
    }
    say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 33 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 38 ms 208 KB Output is partially correct
2 Partially correct 35 ms 208 KB Output is partially correct
3 Correct 6 ms 208 KB Output is correct
4 Correct 7 ms 208 KB Output is correct
5 Partially correct 16 ms 208 KB Output is partially correct
6 Partially correct 48 ms 208 KB Output is partially correct
7 Partially correct 34 ms 208 KB Output is partially correct
8 Partially correct 47 ms 208 KB Output is partially correct
9 Partially correct 46 ms 208 KB Output is partially correct
10 Partially correct 47 ms 256 KB Output is partially correct
11 Partially correct 43 ms 208 KB Output is partially correct
12 Partially correct 30 ms 208 KB Output is partially correct
13 Partially correct 48 ms 208 KB Output is partially correct
14 Partially correct 33 ms 208 KB Output is partially correct