This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdlib.h>
#include <stdio.h>
#include <set>
#include <map>
#include <algorithm>
#include <stdint.h>
#include "grader.h"
#include "lang.h"
#define SZ 100
std::set<uint32_t> had[56];
void excerpt(int *E) {
std::set<int> distinct;
for(int i=0;i<100-1;i++){
distinct.insert(uint32_t(E[i])<<16|E[i+1]);
}
int sim[56]={};
for(int l=0;l<56;l++){
for(int c:distinct){
sim[l]+=had[l].count(c);
}
}
int guess=std::max_element(sim,sim+56)-sim;
int ans=language(guess);
for(int c:distinct){
had[ans].insert(c);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |