# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
104704 | TAMREF | Computer Network (BOI14_network) | C++11 | 189 ms | 8056 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 "network.h"
int dist[1005];
void findRoute (int n, int a, int b){
for(int i = 1; i <= n; i++){
if(i == b) continue;
dist[i] = ping(i, b);
}
for(int now = a; now != b;){
for(int k = 1; k <= n; k++){
if(dist[k] + 1 == dist[now] && ping(k, now) == 1){
travelTo(k);
now = k;
break;
}
}
}
return;
}
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... |