Submission #364074

# Submission time Handle Problem Language Result Execution time Memory
364074 2021-02-08T08:11:11 Z yasseenkamel CONSUL (info1cup19_consul) C++14
0 / 100
9 ms 492 KB
#include "grader.h"
//#include "grader.cpp"

bool vis[1000000005];

void solve(int n){
    for(int i = 1 ; i <= n ; i ++){
        int x = kth(i);
        if(!vis[x]){
            int y = cnt(x);
            if(y > n / 3){
                say_answer(x);
                break;
            }
        }
    }
    say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 364 KB Multiple answers provided for the same testcase!
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 364 KB Multiple answers provided for the same testcase!
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 9 ms 492 KB Too many queries
2 Halted 0 ms 0 KB -