# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
556521 | alextodoran | 007 (CEOI14_007) | C++17 | 1097 ms | 16116 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/**
____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N_MAX = 200000;
int N, M;
int me, him, sv1, sv2;
vector <int> adj[N_MAX + 2];
void bfs (int start, int dist[]) {
fill(dist + 1, dist + N + 1, INT_MAX);
queue <int> q;
dist[start] = 0;
q.push(start);
while (q.empty() == false) {
int u = q.front(); q.pop();
for (int v : adj[u]) {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |