제출 #287064

#제출 시각아이디문제언어결과실행 시간메모리
287064mraronLanguages (IOI10_languages)C++14
54 / 100
979 ms20120 KiB
#include <stdlib.h>
#include <stdio.h>

#include "grader.h"
#include "lang.h"

#define SZ 100

#include<bits/stdc++.h>
using namespace std;

int prv[1100000];
map<int,int> cnt[70000];

void excerpt(int *E) {
   vector<double> chance(56, 1);
   for(int i=0;i<100;++i) {
	   for(int j=0;j<56;++j) {
	     chance[j]*=cnt[E[i]][j];
	   }
   }
   int ans=max_element(chance.begin(), chance.end())-chance.begin();
   int tr=language(ans);
   for(int i=0;i<100;++i) cnt[E[i]][tr]++;
 
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...