| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 752571 | penguin133 | 컴퓨터 네트워크 (BOI14_network) | C++17 | 84 ms | 4496 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
//#define int long long
#include "network.h"
#define pi pair<int, int>
#define pii pair<int, pi>
#define fi first
#define se second
#ifdef _WIN32
#define getchar_unlocked _getchar_nolock
#endif
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
vector <int> tmp[10005];
void findRoute (int N, int a, int b)
{
int hi;
for(int i=1;i<=N;i++){
if(i == b)continue;
int x = ping(i, b);
x++;
if(i == a)hi = x;
else tmp[x].push_back(i);
}
int cur = a;
while(hi){
for(auto i : tmp[hi-1]){
if(ping(cur, i) == 1){
travelTo(i);
cur = i;
hi--;
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... | ||||
