제출 #1354023

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