| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 36578 | minkank | 컴퓨터 네트워크 (BOI14_network) | C++14 | 139 ms | 6004 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "network.h"
using namespace std;
typedef pair<int, int> ii;
#define st first
#define nd second
void findRoute(int N, int S, int T) {
	vector<ii> path;
	vector<int> res;
	path.push_back(ii(0, S));
	for(int i = 1; i <= N; ++i) if(i != S) path.push_back(ii(ping(S, i), i));
	sort(path.begin(), path.end());
	int last = -1;
	for(int i = path.size() - 1; i >= 0; --i) {
		if(path[i].nd == T) {
			last = i;
			continue;
		}
		if(last != -1) {
			int val = ping(path[i].nd, path[last].nd);
			if(val == -1) continue;
			if(val + path[i].st + 1 == path[last].st) last = i, res.push_back(path[i].nd);
		}
	}
	for(int i = res.size() - 1; i >= 0; --i) travelTo(res[i]); travelTo(T); 
}
컴파일 시 표준 에러 (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... | ||||
