답안 #206715

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
206715 2020-03-04T17:14:28 Z mayhoubsaleh CONSUL (info1cup19_consul) C++14
100 / 100
29 ms 376 KB
#include "grader.h"
#include <bits/stdc++.h>
using namespace std;
void solve(int n)
{
    int i = 0;
	while (i < 25){
		int cur = kth((int)rand()%n + 1);
        int nCur = cnt(cur);
        if (nCur > n/3){
            say_answer(cur);
                return;
            }
		i++;
	}
	say_answer(-1);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 16 ms 248 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 22 ms 376 KB Output is correct
2 Correct 10 ms 376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 376 KB Output is correct
2 Correct 23 ms 376 KB Output is correct
3 Correct 11 ms 376 KB Output is correct
4 Correct 12 ms 376 KB Output is correct
5 Correct 21 ms 248 KB Output is correct
6 Correct 25 ms 248 KB Output is correct
7 Correct 24 ms 376 KB Output is correct
8 Correct 26 ms 248 KB Output is correct
9 Correct 25 ms 252 KB Output is correct
10 Correct 22 ms 376 KB Output is correct
11 Correct 25 ms 248 KB Output is correct
12 Correct 22 ms 248 KB Output is correct
13 Correct 29 ms 248 KB Output is correct
14 Correct 25 ms 376 KB Output is correct