| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 24322 | Bruteforceman | 컴퓨터 네트워크 (BOI14_network) | C++11 | 156 ms | 6188 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "network.h"
#include "bits/stdc++.h"
using namespace std;
vector <int> g[2000];
map <pair <int, int>, int> mem;
int dist(int x, int y) {
	if(x > y) swap(x, y);
	if(x == y) return 0;
	if(mem.find(make_pair(x, y)) == mem.end()) return mem[make_pair(x, y)] = ping(x, y) + 1;
	else return mem[make_pair(x, y)];
}
void findRoute (int N, int a, int b)
{
	for(int i = 1; i <= N; i++) {
		g[dist(a, i)].push_back(i);
	}
	vector <int> rout;
	rout.push_back(b);
	for(int i = dist(a, b)-1; i >= 1; i--) {
		for(auto j : g[i]) {
			if(dist(j, rout.back()) == 1) {
				rout.push_back(j);
				break;
			}
		}
	}
	reverse(rout.begin(), rout.end());
	for(auto i : rout) {
		travelTo(i);
	}
}
컴파일 시 표준 에러 (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... | ||||
