# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
105012 | minhtung0404 | Designated Cities (JOI19_designated_cities) | C++17 | 794 ms | 76408 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//https://oj.uz/problem/view/JOI19_designated_cities
#include<bits/stdc++.h>
#define int long long
const int N = 2e5 + 5;
const long long inf = 1e18;
using namespace std;
typedef pair <long long, long long> ii;
typedef pair <int, ii> iii;
vector <iii> G[N];
ii trace[N][3], it[N << 2], root;
int lazy[N << 2];
int n, q, d[N], f[N], p[N], st[N], en[N], node[N], cnt, ans[N];
long long dp[N][4];
bool dead[N];
bool up(long long&a, long long b){
if (a <= b) return false;
a = b;
return true;
}
void dfs(int u, int p){
dp[u][0] = 0; dp[u][1] = dp[u][2] = dp[u][3] = inf;
for (auto P : G[u]){
int v = P.first, a = P.second.first, b = P.second.second;
if (v == p) continue;
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |