# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
291977 | Badrangiikh | 꿈 (IOI13_dreaming) | C++14 | 91 ms | 32888 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dreaming.h"
#include<bits/stdc++.h>
using namespace std;
int ans , maxx , x , y ;
int pare [ 1000005 ] ;
int a [ 1000005 ] ;
pair < int , int > pr , prr , pp ;
vector < pair < int , int > > vc [ 1000005 ] ;
vector < int > vec ;
bool used [ 1000005 ] ;
pair < int , int > dfs ( int chi , int par ) {
used [ chi ] = 1 ;
prr = { 0 , chi } ;
for( auto &u : vc [ chi ] ) {
if ( u . second == par ) continue;
pp = dfs ( u . second , chi ) ;
prr = max ( prr , { pp . first + u . first , pp . second } ) ;
}
a [ chi ] = prr . first ;
pare [ chi ] = par ;
return prr ;
}
int travelTime (int N, int M, int L, int A[], int B[], int T[]) {
for ( int i = 0 ; i < M ; i ++ ) {
vc [ A [ i ] ] . push_back ( { T [ i ] , B [ i ] } ) ;
vc [ B [ i ] ] . push_back ( { T [ i ] , A [ i ] } ) ;
}
컴파일 시 표준 에러 (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... |