Submission #730981

# Submission time Handle Problem Language Result Execution time Memory
730981 2023-04-26T17:32:51 Z murad_2005 CONSUL (info1cup19_consul) C++14
0.116806 / 100
53 ms 296 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 21 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 34 ms 208 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Partially correct 33 ms 208 KB Output is partially correct
2 Partially correct 17 ms 288 KB Output is partially correct
3 Correct 7 ms 208 KB Output is correct
4 Correct 7 ms 208 KB Output is correct
5 Partially correct 43 ms 208 KB Output is partially correct
6 Partially correct 29 ms 208 KB Output is partially correct
7 Partially correct 40 ms 208 KB Output is partially correct
8 Partially correct 39 ms 208 KB Output is partially correct
9 Partially correct 31 ms 208 KB Output is partially correct
10 Partially correct 24 ms 296 KB Output is partially correct
11 Partially correct 45 ms 208 KB Output is partially correct
12 Partially correct 32 ms 208 KB Output is partially correct
13 Partially correct 53 ms 288 KB Output is partially correct
14 Partially correct 44 ms 208 KB Output is partially correct