# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
42297 | RezwanArefin01 | Commuter Pass (JOI18_commuter_pass) | C++14 | 653 ms | 21916 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, int> ii;
const int maxn = 1e5 + 10;
vector<int> adj[maxn], cost[maxn];
vector<ll> du, dv, dt, ds, dp1, dp2;
void dijkstra(int s, int n, vector<ll> &d) {
for(int i = 0; i < n; i++) d[i] = 1e18;
priority_queue<ii, vector<ii>, greater<ii> > q;
q.push({d[s] = 0, s});
while(!q.empty()) {
ii x = q.top(); q.pop();
int u = x.second; ll c = x.first;
for(int i = 0; i < adj[u].size(); i++) {
int v = adj[u][i]; ll w = cost[u][i];
if(d[v] > c + w) {
d[v] = c + w;
q.push({d[v], v});
}
}
}
}
void compute(int s, int n, vector<ll> &dp, vector<ll> &d) {
dp.resize(n + 1);
d.resize(n + 1);
컴파일 시 표준 에러 (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... |