# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1135717 | xnqs | Genetics (BOI18_genetics) | C++20 | 1700 ms | 90916 KiB |
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx2")
#include <iostream>
#include <fstream>
#include <vector>
#include <queue>
#include <utility>
#include <algorithm>
#include <bitset>
const int MAX_DIM = 4100;
int x, y, tgt;
char str[MAX_DIM][4101];
int d[MAX_DIM][MAX_DIM];
std::bitset<4*MAX_DIM> bs[MAX_DIM];
inline int get_index(char ch) {
if (ch=='A') return 0;
if (ch=='T') return 1;
if (ch=='C') return 2;
if (ch=='G') return 3;
return -1;
}
inline int dist(std::bitset<4*MAX_DIM>& a, std::bitset<4*MAX_DIM>& b) {
a ^= b;
int ret = a.count();
a ^= b;
# | 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... |