# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
134855 | 2019-07-23T10:24:39 Z | Just_Solve_The_Problem | Amusement Park (JOI17_amusement_park) | C++17 | 32 ms | 4236 KB |
#include <bits/stdc++.h> #include "Joi.h" #define ll long long using namespace std; const int maxn = (int)1e4 + 7; static vector <int> gr[maxn]; static int used[maxn], d[maxn]; static int n, cur; static ll x; void dfs(int v) { used[v] = 1; MessageBoard(v, (x >> cur) & 1); cur++; for (int to : gr[v]) { if (used[to]) continue; dfs(to); } } void Joi(int N, int M, int A[], int B[], long long X, int T) { n = N; x = X; for (int i = 0; i < M; i++) { gr[A[i]].push_back(B[i]); gr[B[i]].push_back(A[i]); } dfs(0); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 1140 KB | Do not print anything on standard output. |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 31 ms | 4236 KB | Do not print anything on standard output. |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 1268 KB | Do not print anything on standard output. |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 32 ms | 4232 KB | Do not print anything on standard output. |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 31 ms | 4224 KB | Do not print anything on standard output. |
2 | Halted | 0 ms | 0 KB | - |