Submission #1354010

#TimeUsernameProblemLanguageResultExecution timeMemory
1354010takoshanavaCONSUL (info1cup19_consul)C++20
0 / 100
0 ms412 KiB
#include <bits/stdc++.h>
#include "grader.h"
//#define int long long
#define pb push_back
#define fs first
#define sc second
using namespace std;

void solve(int n){
    srand(67);
    int ok = 0;
    for(int i = 0; i < 25; i++){
        int val = rand() % n;
        int c = kth(val);
        int v = cnt(c + 1);
        if(v > n / 3) ok = 1, say_answer(c);
    }
    if(!ok) say_answer(-1);
}


#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...