답안 #247251

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
247251 2020-07-11T08:24:50 Z oolimry 로카히아 유적 (FXCUP4_lokahia) C++17
0 / 100
7 ms 1152 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] >= 100){
			best = i;
		}
		
	}
	
	if(best == -1) assert(false);
	return best;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 512 KB Wrong
2 Partially correct 5 ms 512 KB Partially correct : C = 600
3 Incorrect 5 ms 640 KB Wrong
4 Partially correct 5 ms 512 KB Partially correct : C = 600
5 Correct 4 ms 512 KB Correct : C = 0
6 Incorrect 7 ms 640 KB Wrong
7 Runtime error 6 ms 1152 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Partially correct 5 ms 640 KB Partially correct : C = 600
9 Runtime error 6 ms 1152 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Incorrect 5 ms 640 KB Wrong
11 Incorrect 5 ms 512 KB Wrong
12 Partially correct 5 ms 640 KB Partially correct : C = 600
13 Partially correct 5 ms 640 KB Partially correct : C = 600
14 Partially correct 5 ms 512 KB Partially correct : C = 600
15 Partially correct 6 ms 512 KB Partially correct : C = 600
16 Runtime error 7 ms 1152 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 6 ms 1152 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Partially correct 5 ms 640 KB Partially correct : C = 600
19 Runtime error 6 ms 1024 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Partially correct 5 ms 512 KB Partially correct : C = 600
21 Partially correct 5 ms 512 KB Partially correct : C = 600
22 Partially correct 6 ms 640 KB Partially correct : C = 600
23 Partially correct 5 ms 512 KB Partially correct : C = 600
24 Incorrect 6 ms 640 KB Wrong
25 Runtime error 6 ms 1152 KB Execution killed with signal 11 (could be triggered by violating memory limits)
26 Incorrect 5 ms 640 KB Wrong
27 Partially correct 5 ms 640 KB Partially correct : C = 600