# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
503644 | jk410 | 철도 요금 (JOI16_ho_t3) | C++17 | 2561 ms | 15856 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int INF=1e9;
struct nosun{
int u,v;
};
struct edge{
int v,cost;
bool operator<(const edge &tmp)const{
return cost>tmp.cost;
}
};
int N,M,Q;
nosun Nosun[200001];
int R[200001];
bool Used[200001];
vector<int> Edge[100001];
int D[100001];
int Dist[100001];
priority_queue<edge> PQ;
int Ans[200001];
void dijkstra(int t){
while (!PQ.empty()){
edge tmp=PQ.top();
PQ.pop();
if (Dist[tmp.v]<tmp.cost)
continue;
for (int i:Edge[tmp.v]){
if (Dist[i]>tmp.cost+1){
D[i]=t;
# | 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... |