# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
522783 | fadi57 | Valley (BOI19_valley) | C++14 | 529 ms | 52976 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
const int mx=2e5+9;
typedef long long ll;
const int mod=1000000007;
const long long inf=1e8+10;
const int SQ=450;
//typedef int long long;
int arr[mx];
int shop[mx];
int tin[mx],tout[mx],depth[mx];
ll cost[mx],mn[20][mx],dp[20][mx],dist[mx];
int tim;int n,s,q,e;
vector<pair<int,int>>adj[mx];
int u[mx],v[mx];
void dfs(int node,int par){
tin[node]=tim++;
if(shop[node]==1){
cost[node]=0;
}else{
cost[node]=inf;
}
for(auto it:adj[node]){
if(it.first==par){continue;}
depth[it.first]=depth[node]+1;
dist[it.first]=dist[node]+it.second;
컴파일 시 표준 에러 (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... |