| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 559444 | Sam_a17 | Computer Network (BOI14_network) | C++14 | 95 ms | 7912 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "network.h"
using namespace std;
const int M = 1e3 + 10;
vector<int> adj[M];
void findRoute (int N, int a, int b) {
  /*
  int dist = ping(a, b);
  for (int i = 1; i <= dist; ++i)
  travelTo(i);
  */
  int maxi = ping(a, b);
  for(int i = 1; i <= N; i++) {
    if(i == a || i == b) {
      continue;
    }
    int dist = ping(i, b);
    if(dist < maxi) {
      adj[dist].push_back(i);
    }
  }
  int curr = a;
  for(int i = maxi - 1; i >= 0; i--) {
    for(auto j: adj[i]) {
      if(!ping(curr, j)) {
        travelTo(j);
        curr = j;
        break;
      }
    }
  }
  travelTo(b);
}
컴파일 시 표준 에러 (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... | ||||
