# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
418578 | Berted | 어르신 집배원 (BOI14_postmen) | C++14 | 503 ms | 71528 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
#define pii pair<int, int>
#define fst first
#define snd second
using namespace std;
const int INF = 1e9;
int N, M, H[500001];
vector<pii> adj[500001];
bool used[500001];
int DFS(int u)
{
while (adj[u].size())
{
int v = adj[u].back().fst, id = adj[u].back().snd; adj[u].pop_back();
if (used[id]) continue;
used[id] = 1;
if (H[v] < H[u])
{
cout << u + 1 << " ";
H[u] = INF;
return H[v];
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |