Submission #914662

# Submission time Handle Problem Language Result Execution time Memory
914662 2024-01-22T13:42:16 Z abcvuitunggio Languages (IOI10_languages) C++17
55 / 100
166 ms 2872 KB
#include <bits/stdc++.h>

#include "grader.h"
#include "lang.h"

#define SZ 100
#define A 65536
#define ld long double

using namespace std;
int d[56][A];

void excerpt(int *E){
    pair <int, int> mx={0,0};
    for (int i=0;i<56;i++){
        int cnt=0;
        for (int j=0;j<SZ;j++)
            cnt+=min(d[i][E[j]],1);
        mx=max(mx,{cnt,i});
    }
    int res=language(mx.second);
    for (int i=0;i<100;i++)
        d[res][E[i]]++;
}
# Verdict Execution time Memory Grader output
1 Correct 166 ms 2872 KB Output is correct
# Verdict Execution time Memory Grader output
1 Partially correct 162 ms 2860 KB Output is partially correct - 52.27%