| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1365739 | Warinchai | 컴퓨터 네트워크 (BOI14_network) | C++20 | 37 ms | 4304 KiB |
#include "network.h"
#include<bits/stdc++.h>
using namespace std;
int dis[1005];
vector<int>tot[1005];
void findRoute (int N, int a, int b)
{
for(int i=1;i<=N;i++)tot[i].clear(),dis[i]=0;
//cerr<<"work\n";
for(int i=1;i<N;i++){
dis[i]=ping(i,N)+1;
tot[dis[i]].push_back(i);
}
//cerr<<"wtf\n";
int prv=a;
vector<int>ans;
/*cerr<<"dis[a]:"<<dis[a]<<"\n";
for(int i=1;i<dis[a];i++){
cerr<<"i:"<<i<<"\n";
for(auto x:tot[i])cerr<<x<<" ";
cerr<<"\n";
}*/
for(int i=dis[a]-1;i>0;i--){
int nxt=0;
for(auto x:tot[i]){
//cerr<<"try:"<<x<<"\n";
if(ping(prv,x)==0){
prv=x;
break;
}
}
travelTo(prv);
}
travelTo(b);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
