Submission #364130

# Submission time Handle Problem Language Result Execution time Memory
364130 2021-02-08T09:28:39 Z yasseenkamel CONSUL (info1cup19_consul) C++14
0 / 100
4 ms 364 KB
#include <bits/stdc++.h>
#include "grader.h"
//#include "grader.cpp"

using namespace std;

void solve(int n){
    int a[1005];
    for(int i = 0 ; i < n / 3 ; i ++){
        int x = kth(i + 1);
        a[i] = x;
    }
    sort(a,a + n);
    //int cnt = 1;
    for(int i = 0 ; i < n / 3 ; i ++){
        int x = cnt(a[i]);
        if(x > n / 3){
            say_answer(a[i]);
            return;
        }
    }
    say_answer(-1);
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Wrong answer
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 364 KB Wrong answer
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 364 KB Wrong query format
2 Halted 0 ms 0 KB -