Submission #270862

# Submission time Handle Problem Language Result Execution time Memory
270862 2020-08-18T03:55:46 Z TMJN Languages (IOI10_languages) C++17
0 / 100
140 ms 5244 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;

map<int,int>mp[55];
int C[55];

void excerpt(int *E) {
  	language(0);
  	return;
	pair<double,int>mx={0,0};
	for(int i=0;i<55;i++){
		if(C[i]==0)continue;
		int c=0;
		for(int j=0;j<100;j++){
			c+=mp[i][E[j]];
		}
		mx=max(mx,{(double)c/C[i],i});
	}
	int l=language(mx.second);
	C[l]++;
	for(int i=0;i<100;i++){
		mp[l][E[i]]++;
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 139 ms 5240 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 140 ms 5244 KB Output isn't correct - 1.91%