| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 91452 | arman_ferdous | 악어의 지하 도시 (IOI11_crocodile) | C++17 | 882 ms | 78468 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "crocodile.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5+10;
const ll INF = 1e15;
int n, vis[N]; ll d[N][2];
vector< pair<int,ll> > g[N];
priority_queue< pair<ll,int>, vector< pair<ll,int> >, greater< pair<ll,int> > > q;
int travel_plan(int N_, int M, int R[][2], int L[], int K, int P[]) {
	n = N_;
	for(int i = 0; i < M; i++) {
		g[R[i][0]].push_back({R[i][1], L[i]});
		g[R[i][1]].push_back({R[i][0], L[i]});
	}
	for(int i = 0; i < n; i++) d[i][0] = d[i][1] = INF;
	for(int i = 0; i < K; i++) {
		d[P[i]][0] = d[P[i]][1] = 0;
		q.push({0, P[i]});
	}
	while(!q.empty()) {
		auto top = q.top(); q.pop();
		int u = top.second; ll cw = top.first;
		if(vis[u]) continue; vis[u] = true;
		for(auto e : g[u]) {
			if(cw + e.second <= d[e.first][0]) {
				d[e.first][1] = d[e.first][0];
				d[e.first][0] = cw + e.second;
				q.push({d[e.first][1], e.first});
			}
			else if(cw + e.second < d[e.first][1]) {
				d[e.first][1] = cw + e.second;
				q.push({d[e.first][1], e.first});
			}
		}
	} return d[0][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... | ||||
