# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
752448 | jamezzz | Computer Network (BOI14_network) | C++17 | 116 ms | 7808 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 d[1005];
void findRoute (int N,int a,int b){
int cur=a;
for(int i=1;i<=N;++i)d[i]=i==b?-1:ping(i,b);
while(cur!=b){
for(int i=1;i<=N;++i){
if(d[i]==d[cur]-1&&ping(cur,i)==0){
travelTo(i);
cur=i;
break;
}
}
}
}
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... |