# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
991718 | aryan12 | Magic Show (APIO24_show) | C++17 | 4 ms | 1508 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 "Alice.h"
#include <bits/stdc++.h>
using namespace std;
// you may define some global variables, but it does not work if you try to transfer any information from function Alice() to function Bob() through these variables.
// you had better not use the same global variables in function Alice() and in function Bob().
long long par[5000];
long long find(long long x) {
if(x == par[x]) {
return x;
}
return find(par[x]);
}
void unite(long long a, long long b) {
a = find(a);
b = find(b);
if(a == b) return;
par[a] = b;
}
vector<pair<int,int> > Alice() {
// add your code here
// change below into your code
iota(par, par + 5000, 0);
long long x = setN(5000);
long long center1 = (x - 1) / 5000;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |