# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
206717 | Saboon | Olympic Bus (JOI20_ho_t4) | C++14 | 322 ms | 2424 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
const int maxn = 200 + 10;
const int maxm = 5e4 + 10;
const int inf = 1e9;
int n, m;
int a[maxm], b[maxm], c[maxm], d[maxm];
vector<pair<int,int> > g[maxn];
int dp[maxn], pd[maxn], cn[maxn], pr[maxn];
bool mark[maxn];
int dijkstra(int src, int snk){
memset(dp, 63, sizeof dp);
memset(mark, 0, sizeof mark);
memset(cn, 0, sizeof cn);
dp[src] = 0;
for (int i = 0; i < n; i++){
int v = -1;
for (int j = 1; j <= n; j++)
if (!mark[j] and (v == -1 or dp[v] > dp[j]))
v = j;
if (v == -1)
break;
# | 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... |