# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
699833 | qwerasdfzxcl | Olympic Bus (JOI20_ho_t4) | C++17 | 256 ms | 3016 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
constexpr ll INF = 1e18;
int n, m, U[50050], V[50050], C[50050], D[50050];
pair<ll, int> adj[202][202];
ll d1[202], d2[202], d3[202], d4[202], dist1[202], dist2[202];
int visited[202], chk[50050], par[202];
void dijkstra(int s, ll dist[], int *chk = 0, int e = 0){
fill(dist+1, dist+n+1, INF);
fill(visited+1, visited+n+1, 0);
dist[s] = 0;
for (int i=1;i<=n;i++){
ll mn = INF + 1, v = -1;
for (int j=1;j<=n;j++) if (!visited[j] && dist[j] < mn){
mn = dist[j];
v = j;
}
assert(v!=-1);
visited[v] = 1;
for (int j=1;j<=n;j++) if (!visited[j] && dist[j] > dist[v] + adj[v][j].first){
dist[j] = dist[v] + adj[v][j].first;
par[j] = adj[v][j].second;
}
}
컴파일 시 표준 에러 (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... |