# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
141090 | babo | Key of Impassable Doors (FXCUP3_key) | C++14 | 2 ms | 632 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 "key.h"
#include <bits/stdc++.h>
#define va first
#define vb second
using namespace std;
using pii = pair<int,int>;
int par[1005];
vector<int> cyc[1005], P[1005];
int sz[1005];
int n_cyc, clk;
int cycid[1005];
int chk[1005];
int gsz(int i){
TakeKey(i);
return Explore();
}
int gsz_range(int s, int e, vector<int>& T, int u){
for(int i = s; i <= e; i++) TakeKey(T[i]);
TakeKey(u);
int K = Explore();
//cout << "gsz_range = " << K << '\n';
return K;
}
int get_union(int s, int e, vector<int>& T, int lim){
++clk;
int cnt = 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... |