# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
448567 | 2021-07-30T19:11:24 Z | Aryan_Raina | Computer Network (BOI14_network) | C++17 | 109 ms | 7888 KB |
#include "network.h" #include <bits/stdc++.h> using namespace std; void findRoute (int N, int a, int b) { int da[N+1], db[N+1]; for (int i = 1; i <= N; i++) if (a != i) da[i] = ping(a, i); for (int i = 1; i <= N; i++) if (b != i) db[i] = ping(b, i); da[a] = db[b] = -1; int cur = a; while (cur != b) for (int i = 1; i <= N; i++) if (da[i] == da[cur]+1 && db[i]+1 == db[cur]) travelTo(cur = i); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 109 ms | 7888 KB | Output is correct |
2 | Correct | 101 ms | 7420 KB | Output is correct |
3 | Correct | 99 ms | 6996 KB | Output is correct |
4 | Correct | 93 ms | 6932 KB | Output is correct |
5 | Correct | 97 ms | 6588 KB | Output is correct |
6 | Correct | 93 ms | 6588 KB | Output is correct |
7 | Correct | 1 ms | 204 KB | Output is correct |
8 | Correct | 1 ms | 332 KB | Output is correct |
9 | Correct | 0 ms | 204 KB | Output is correct |
10 | Correct | 1 ms | 332 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 106 ms | 6580 KB | Travelling to nonadjacent computer |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 97 ms | 6612 KB | Travelling to nonadjacent computer |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 103 ms | 6680 KB | Travelling to nonadjacent computer |
2 | Halted | 0 ms | 0 KB | - |