제출 #525771

#제출 시각아이디문제언어결과실행 시간메모리
525771tudorCONSUL (info1cup19_consul)C++17
100 / 100
24 ms200 KiB
#include <bits/stdc++.h> #include <grader.h> using namespace std; void solve ( int n ) { srand ( time ( NULL ) ); int q = 50 + 10 * ( q > 50 ), x, r; for ( int i = 0; i < q / 2; i++ ) { x = rand () % n + 1; if ( cnt ( r = kth ( x ) ) > n / 3 ) { say_answer ( r ); return; } } say_answer ( -1 ); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...