제출 #1353980

#제출 시각아이디문제언어결과실행 시간메모리
1353980nataliaaCONSUL (info1cup19_consul)C++20
0 / 100
4 ms344 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+1);
        auto x = kth(ok);
        auto y = cnt(x);
        if(y>n/3) {say_answer(x); return;}
    }
    say_answer(a);
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…