# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
777952 | TheSahib | Genetics (BOI18_genetics) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma GCC optimize("O3")
#pragma GCC target("popcnt")
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define oo 1e9
#define pii pair<int, int>
using namespace std;
const int MAX = 4105;
const int SIZE = (MAX / 128 + 1) * 4;
int n, m, k;
struct bs{
__uint128_t arr[SIZE];
bs(){
memset(arr, 0, sizeof(arr));
}
void setBit(int pos){
arr[pos / 128] |= (__uint128_t(1) << (pos % 128));
}
};
int band(bs& a, bs& b){
int cnt = 0;
for (int i = 0; i < SIZE; i++)