# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1148158 | Kaztaev_Alisher | 통행료 (IOI18_highway) | C++20 | 270 ms | 327680 KiB |
#include "highway.h"
#include <bits/stdc++.h>
#define ios ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define file(s) if (fopen(s".in", "r")) freopen(s".in", "r", stdin), freopen(s".out", "w", stdout)
#define all(a) a.begin() , a.end()
#define F first
#define S second
using namespace std;
using ll = long long;
const ll N = 2e5+5 , inf = 2e9 + 7;
const ll INF = 1e18 , mod = 1e9+7;
int dep[N] , road[N];
vector<pair<int,int>> g[N];
void dfs(int v, int p , int cost){
for(auto x : g[v]){
int to = x.S;
if(to != p) {
road[to] = x.F;
dep[to] = dep[v]+cost;
dfs(to,v,cost);
}
}
}
void find_pair(int n, vector<int> U, vector<int> V, int A, int B) {
vector<int> w;
for(int i = 0; i < U.size(); i++){
# | 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... |