# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
884921 | maxFedorchuk | The Xana coup (BOI21_xanadu) | C++17 | 51 ms | 15852 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 <bits/stdc++.h>
using namespace std;
const long long MX=1e5+10;
vector < long long > mas[MX];
long long st[MX];
long long mn[MX][2][2];
long long n;
void DFS(long long zar,long long mun)
{
for(auto u:mas[zar])
{
if(u!=mun)
{
DFS(u,zar);
}
}
if(st[zar])
{
mn[zar][0][1]=0;
mn[zar][1][1]=n+1;
mn[zar][0][0]=n+1;
mn[zar][1][0]=1;
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |