# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
146326 | popovicirobert | Languages (IOI10_languages) | C++14 | 246 ms | 1784 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
using namespace std;
#include "grader.h"
#include "lang.h"
#define SZ 100
bool ok[60][66000];
bool vis[60];
inline ll myrand() {
return (1LL * rand() << 15) + rand();
}
void excerpt(int *E) {
int i, j;
unordered_map <int, int> mp;
for(i = 0; i < 100; i++) {
mp[E[i]] = 1;
}
int mx = 0, id = -1;
for(i = 0; i < 56; i++) {
int cur = 0;
for(auto it : mp) {
cur += ok[i][it.first];
}
if(cur > mx) {
mx = cur, id = i;
}
}
if(id == -1) {
vector <int> ids;
for(i = 0; i < 56; i++) {
if(vis[i] == 0) ids.push_back(i);
}
int sz = ids.size();
id = ids[myrand() % sz];
}
id = language(id);
for(i = 0; i < 100; i++) {
ok[id][E[i]] = 1;
}
vis[id] = 1;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |