# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
729697 | pcc | Commuter Pass (JOI18_commuter_pass) | C++14 | 359 ms | 26400 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pll pair<ll,ll>
#define fs first
#define sc second
const int mxn = 1e5+10;
const ll inf = 1e18;
vector<pll> paths[mxn];
ll dist1[mxn],dist2[mxn],dist3[mxn],deg[mxn];
vector<int> dag[mxn];
bitset<mxn> done;
ll dp[2][mxn];
int n,m;
int s,e,u,v;
ll ans = 1e18;
void dijkstra(int st,ll dist[]){
priority_queue<pll,vector<pll>,greater<pll>> pq;
fill(dist,dist+n+1,inf);
dist[st] = 0;
pq.push(make_pair(0,st));
while(!pq.empty()){
auto now = pq.top().sc;
auto val = pq.top().fs;
pq.pop();
//cout<<now<<endl;
if(val != dist[now])continue;
# | 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... |