# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
733352 | Trunkty | Computer Network (BOI14_network) | C++14 | 115 ms | 8012 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define int ll
#include "network.h"
int arr[1005];
vector<int> dist[1005];
void findRoute(int n, int a, int b){
for(int i=1;i<=n;i++){
if(i!=b){
arr[i] = ping(b,i);
dist[arr[i]].push_back(i);
}
}
dist[0].push_back(b);
for(int i=arr[a]-1;i>=0;i--){
for(int j:dist[i]){
if(ping(a,j)==0){
a = j;
travelTo(j);
break;
}
}
}
travelTo(b);
}
Compilation message (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... |