# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
448569 | Aryan_Raina | Computer Network (BOI14_network) | C++17 | 97 ms | 4224 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"
#include <bits/stdc++.h>
using namespace std;
void findRoute (int N, int a, int b) {
int d[N+1];
for (int i = 1; i <= N; i++)
if (a != i) d[i] = ping(a, i);
d[a] = -1;
int cur = a;
while (cur != b)
for (int i = 1; i <= N; i++)
if (d[i] == d[cur]+1 && !ping(cur, i))
travelTo(cur = i);
}
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... |