| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 88011 | Pajaraja | 악어의 지하 도시 (IOI11_crocodile) | C++17 | 1522 ms | 106532 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "crocodile.h"
#include <bits/stdc++.h>
using namespace std;
vector<pair<int,int> > g[100007];
int cnt[100007],d[100007];
int travel_plan(int N, int M,int R[][2],int L[],int K,int P[]) 
{
	fill(d,d+100007,-1);
	for(int i=0;i<M;i++)
	{
		pair<int,int> p=make_pair(-L[i],R[i][0]);
		g[R[i][1]].push_back(p);
		p.second=R[i][1];
		g[R[i][0]].push_back(p);
	}
	priority_queue<pair<int,int> > q;
	for(int i=0;i<K;i++) 
	{
	    for(int j=0;j<g[P[i]].size();j++) q.push(g[P[i]][j]);
	    d[P[i]]=0;
	}
	while(!q.empty())
	{
		pair<int,int> p=q.top();
		q.pop();
		if(d[p.second]!=-1) continue;
		cnt[p.second]++;
		if(cnt[p.second]==2)
		{
			d[p.second]=p.first;
			for(int i=0;i<g[p.second].size();i++)
			{
				pair<int,int> r=g[p.second][i];
				r.first+=p.first;
				q.push(r);
			}
		}
	}
	return -d[0];
}
컴파일 시 표준 에러 (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... | ||||
