| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 41128 | 14kg | 컴퓨터 네트워크 (BOI14_network) | C++11 | 150 ms | 58656 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "network.h"
#include <algorithm>
using namespace std;
int out_len, d_len, out[1001];
pair<int,int> d[1001];
void findRoute(int n, int s, int e){
int out_w;
out_len=ping(s,e)+1;
out_w=out_len-1, out[out_w+1]=e;
for(int i=1; i<=n; i++)
if(i!=s && i!=e) d[++d_len]={ping(s,i),i};
sort(d+1,d+d_len+1);
for(int i=d_len; i>=1; i--){
if(out_w<=d[i].first) continue;
if(d[i].first+ping(d[i].second,out[out_w+1])==out_w-1){
out[out_w]=d[i].second, out_w--;
}
}
for(int i=1; i<=out_len; i++) travelTo(out[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... | ||||
