# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
58745 | leejseo | 철도 요금 (JOI16_ho_t3) | C++98 | 2517 ms | 29852 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 100000;
const int INF = (int) 2e9;
typedef struct Edge{
int s, t, w;
Edge(int s_, int t_, int w_){ s = s_, t= t_, w = w_; }
} Edge;
typedef struct Node{
int i, d;
Node (int i_, int d_){i = i_, d = d_;}
bool operator < (const Node &N) const{
if (d != N.d) return d > N.d;
return i < N.i;
}
} Node;
vector<Edge> E;
vector<int> adj[MAXN+1];
int N, M, Q, dist[MAXN+1], pre[MAXN+1];
priority_queue<Node> que;
void dijkstra(){
dist[1] = 0;
que.push(Node(1, 0));
while (!que.empty()){
Node N = que.top();
que.pop();
컴파일 시 표준 에러 (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... |