# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
163079 | nvmdava | Genetics (BOI18_genetics) | C++17 | 854 ms | 40056 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
// #pragma GCC optimize("unroll-loops,Ofast")
#pragma GCC target("fma")
using namespace std;
#define ll long long
#define ff first
#define ss second
#define N 1000005
char c;
ll val[4500][70];
ll val2[4500][70];
int to[500];
int to2[500];
bool ans[4200][4200];
bool vis[4200][4200];
bool ok[4200];
int n, m, k;
inline bool comp(int a, int b){
if(vis[a][b])
return ans[a][b];
int q = 0;
for(int j = 0; j <= 65; ++j)
q += __builtin_popcountll((val[a][j] ^ val[b][j]) | (val2[a][j] ^ val2[b][j]));
vis[a][b] = vis[b][a] = 1;
return ans[a][b] = ans[b][a] = (q == k);
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |