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<bits/stdc++.h>
#include "grader.h"
using namespace std;
const int N = 1e2 + 7;
const long long MAX = 281474976710656;
long long d[N][3];
long long lang[56][N][3];
void excerpt(int *E) {
for(int i = 0; i < 100; i ++){
d[i][0] = E[i];
d[i][1] = (d[i][0] << 16) + E[i];
d[i][2] = (d[i][1] << 16) + E[i];
}
vector<pair<long long, int>> a;
for(int j = 0; j < 56; j ++){
long long x = 0;
for(int i = 0; i < 100; i ++){
for(int k = 0; k < 3; k ++){
x += max(0ll, MAX - (d[i][k] / lang[j][i][k]));
}
}
a.push_back({x, j});
}
sort(a.begin(), a.end());
int lan = a.back().second;
int ans = language(lan);
for(int i = 0; i < 100; i ++){
for(int k = 0; k < 3; k ++){
lang[ans][i][k] = d[i][k];
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |