# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
579732 | jasmin | Event Hopping (BOI22_events) | C++17 | 1601 ms | 524288 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int inf=1e18;
/*int find_dist(int v, int ende, vector<vector<int> >& adi, vector<pair<int,int> >& e){
if(e[ende].second<e[v].second) return inf;
if(v==ende) return 0;
int best=v;
for(auto u: adi[v]){
if(u==ende){
best=u;
break;
}
if(e[best].second<e[u].second && e[u].second<=e[ende].second){
best=u;
}
}
if(best==ende) return 1;
if(e[best].second==e[v].second) return inf;
int ans=find_dist(best, ende, adi, e);
if(ans==inf) return inf;
return ans+1;
}*/
int find_dist(int start, int ende, vector<vector<int> >& adi, vector<pair<int,int> >& e){
# | 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... |