답안 #247247

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
247247 2020-07-11T08:24:04 Z oolimry 로카히아 유적 (FXCUP4_lokahia) C++17
0 / 100
7 ms 768 KB
#include "lokahia.h"
#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> ii;

int FindBase(int N){
	srand(time(NULL));
	vector<int> v;
	
	if(N == 1){
		return 0;
	}
	
	for(int i = 0;i < N;i++) v.push_back(i);

	
	int cnt = 0;
	map<int,int> occur;
	
	int can = 0;
	while(cnt < 600){
		int a = rand() % N, b = rand() % N;
		if(a == b) continue;
		
		cnt++;
		int x = CollectRelics(a,b);
		if(x == -1) continue;
		
		occur[x]++;
		can++;
	}
	
	int best = -1;
	for(int i = 0;i < N;i++){
		//cout << occur[i] << "\n";
		if(occur[i] >= 120){
			best = i;
		}
		
	}
	
	//cout << best << " ";
	return best;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 512 KB Correct : C = 0
2 Partially correct 5 ms 640 KB Partially correct : C = 600
3 Partially correct 5 ms 640 KB Partially correct : C = 600
4 Incorrect 6 ms 640 KB Wrong
5 Partially correct 6 ms 640 KB Partially correct : C = 600
6 Partially correct 5 ms 640 KB Partially correct : C = 600
7 Partially correct 5 ms 512 KB Partially correct : C = 600
8 Partially correct 6 ms 640 KB Partially correct : C = 600
9 Incorrect 6 ms 768 KB Wrong
10 Incorrect 5 ms 640 KB Wrong
11 Partially correct 5 ms 640 KB Partially correct : C = 600
12 Partially correct 6 ms 640 KB Partially correct : C = 600
13 Partially correct 5 ms 512 KB Partially correct : C = 600
14 Incorrect 6 ms 640 KB Wrong
15 Partially correct 5 ms 512 KB Partially correct : C = 600
16 Partially correct 5 ms 512 KB Partially correct : C = 600
17 Partially correct 5 ms 512 KB Partially correct : C = 600
18 Partially correct 5 ms 640 KB Partially correct : C = 600
19 Partially correct 7 ms 640 KB Partially correct : C = 600
20 Partially correct 5 ms 640 KB Partially correct : C = 600
21 Incorrect 5 ms 640 KB Wrong
22 Partially correct 6 ms 512 KB Partially correct : C = 600
23 Incorrect 5 ms 640 KB Wrong
24 Partially correct 5 ms 640 KB Partially correct : C = 600
25 Partially correct 5 ms 512 KB Partially correct : C = 600
26 Partially correct 5 ms 640 KB Partially correct : C = 600
27 Incorrect 5 ms 512 KB Wrong