# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
522202 | sean617 | Languages (IOI10_languages) | C++98 | 111 ms | 262148 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 <unordered_map>
//#include <vector>
//#include <cstring>
#include <algorithm>
#include <set>
using namespace std;
int l, v[58][100000];
set<int> v2[58][100000];
void excerpt(int *E) {
int i, j, num, ans = 0, x, mx = 0, cnt;
l = 100;
//sort(E, E + l);
for (x =0; x < 56; x++) {
cnt = 0;
for (i =1; i < l; i++) {
if (v2[x][E[i - 1]].count(E[i]) == 1) cnt++;
}
if (cnt > mx) {
mx = cnt;
ans = x;
}
}
ans = language(ans);
for (i = 1; i < l; i++) {
v2[ans][E[i - 1]].insert(E[i]);
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |