# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
989107 | aykhn | Bitaro’s Party (JOI18_bitaro) | C++17 | 2031 ms | 14792 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;
#define int long long
#define inf 0x3F3F3F3F3F3F3F3F
const int MXN = 1e5 + 5;
const int B = 350;
int n, m, q;
vector<int> adj[MXN];
int used[MXN], dp[MXN], inq[MXN];
vector<array<int, 2>> b[MXN];
vector<int> o;
void init(int a)
{
used[a] = 1;
b[a].push_back({0, a});
set<int> in;
vector<array<int, 2>> nw;
for (int v : adj[a])
{
if (!used[v]) init(v);
in.clear();
nw.clear();
int i = 0, j = 0;
while (nw.size() < B + 1 && i < b[a].size() && j < b[v].size())
{
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... |