# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
503644 | jk410 | 철도 요금 (JOI16_ho_t3) | C++17 | 2561 ms | 15856 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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... |