# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
134874 | 2019-07-23T11:07:54 Z | Just_Solve_The_Problem | Amusement Park (JOI17_amusement_park) | C++17 | 33 ms | 4628 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++; if (cur >= 60) cur -= 60; 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); //cerr << X << endl; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 4 ms | 1264 KB | Wrong Answer [7] |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 32 ms | 4168 KB | Output is correct |
2 | Incorrect | 33 ms | 4172 KB | Wrong Answer [7] |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 4 ms | 1268 KB | Output is correct |
2 | Correct | 4 ms | 1276 KB | Output is correct |
3 | Correct | 4 ms | 1372 KB | Output is correct |
4 | Correct | 6 ms | 1552 KB | Output is correct |
5 | Correct | 6 ms | 1688 KB | Output is correct |
6 | Correct | 6 ms | 1704 KB | Output is correct |
7 | Correct | 6 ms | 1696 KB | Output is correct |
8 | Correct | 6 ms | 1680 KB | Output is correct |
9 | Correct | 17 ms | 4000 KB | Output is correct |
10 | Correct | 17 ms | 3872 KB | Output is correct |
11 | Correct | 17 ms | 4016 KB | Output is correct |
12 | Correct | 4 ms | 1280 KB | Output is correct |
13 | Correct | 4 ms | 1404 KB | Output is correct |
14 | Correct | 4 ms | 1268 KB | Output is correct |
15 | Correct | 4 ms | 1276 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 32 ms | 4288 KB | Output is correct |
2 | Incorrect | 32 ms | 4288 KB | Wrong Answer [7] |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 32 ms | 4160 KB | Output is correct |
2 | Correct | 32 ms | 4608 KB | Output is correct |
3 | Incorrect | 33 ms | 4628 KB | Wrong Answer [7] |
4 | Halted | 0 ms | 0 KB | - |