# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
630567 | CyanForces | Rarest Insects (IOI22_insects) | C++17 | 70 ms | 888 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.
#include "insects.h"
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) begin(x), end(x)
#define sz(x) (int)(x).size()
#define debug(...) //ignore
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef long double ld;
int min_cardinality(int N) {
int ADD = 0, REM = 0, QUE = 0;
int n = N;
set<int> active;
set<int> dead;
set<int> basis;
using H = unsigned long long;
vector<H> rnd(n);
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
rep(i,0,n) rnd[i] = rng();
H hsh = 13;
map<H,int> queried;
queried[hsh] = 0;
Compilation message (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... |