제출 #802400

#제출 시각아이디문제언어결과실행 시간메모리
802400raysh07CONSUL (info1cup19_consul)C++17
100 / 100
23 ms336 KiB
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;

void solve(int n)
{
    srand(42);
    for (int i = 1; i <= 25; i++){
        int x = 1 + rand() % n;
        
        int ok = kth(x);
        int f = cnt(ok);
        
        if (f > (n / 3)) {
            say_answer(ok);
            return;
        }
    }
    
    say_answer(-1);
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...