# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
155304 | jhnah917 | Languages (IOI10_languages) | C++14 | 0 ms | 0 KiB |
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 "grader.h"
#include "lang.h"
#include <bits/stdc++.h>
using namespace std;
int n = 100, m = 56;
void excerpt(int *arr){
int mx = 0, idx = 0;
for(int i=0; i<m; i++){
int cnt = 0;
for(int j=0; j<n; j++) if(cnt[i][arr[j]]) cnt++;
if(cnt > mx){
mx = cnt; idx = i;
}
}
int ans = language(idx);
for(int i=0; i<n; i++) cnt[idx][arr[i]] = 1;
}