제출 #1353983

#제출 시각아이디문제언어결과실행 시간메모리
1353983nataliaaCONSUL (info1cup19_consul)C++20
85 / 100
5 ms412 KiB
#include "grader.h"
#include<bits/stdc++.h>
using namespace std;
void solve(int n){
    srand(time(0));
    int a = -1;
    for(int i = 0; i < 30; i++) {
        int ok = rand() % n;
        auto x = kth(ok+1);
        auto y = cnt(x);
        if(y>n/3) {say_answer(x); return;}
    }
    say_answer(a);
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…