이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include "grader.h"
using namespace std;
#define ll long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define all(vr) vr.begin(),vr.end()
#define vi vector<int>
#define vll vector<ll>
const int N = 1e5 + 10;
int in[60][N];
void excerpt(int E[])
{
ll id = 0, mx = -1;
for (int i = 0; i <= 55; ++i)
{
ll score = 0, d = 0, len = 0;
for (int j = 0; j < 100; ++j)
if (in[i][E[j]]) score += ++d, len = max(len, d);
else d = 0;
score += len;
if (score > mx) id = i, mx = score;
}
id = language(id);
for (int i = 0; i < 100; ++i) in[id][E[i]] = 1;
}
/*int main()
{
//freopen("ss.inp", "r", stdin);
ios::sync_with_stdio(false);
cin.tie(0);
return 0;
}*/
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |