# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
139722 | win11905 | Amusement Park (JOI17_amusement_park) | C++14 | 36 ms | 4852 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>
#include "Joi.h"
#define long long long
using namespace std;
const int N = 1e4+5;
static int n, m;
static long val;
static vector<int> g[N];
static bool check[N];
static int ptr;
static void dfs(int u) {
MessageBoard(u, val >> (ptr++) & 1);
ptr %= 60;
check[u] = true;
for(int v : g[u]) if(!check[v])
dfs(v);
}
void Joi(int N, int M, int A[], int B[], long X, int T) {
n = N, m = M, val = X;
for(int i = 0; i < m; ++i) {
g[A[i]].emplace_back(B[i]);
g[B[i]].emplace_back(A[i]);
}
dfs(0);
}
# | 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... |