#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];
int cnt[70000][56];
int osz[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]*=double(cnt[E[i]][j])/(osz[E[i]]+1);
}
}
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]++;
osz[E[i]]++;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
248 ms |
5868 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
237 ms |
5880 KB |
Output is partially correct - 51.15% |