# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
65755 | 2018-08-08T16:41:10 Z | MiricaMatei | Computer Network (BOI14_network) | C++14 | 146 ms | 9248 KB |
#include "network.h" #include <bits/stdc++.h> using namespace std; vector<int>d[1005]; void findRoute (int N, int a, int b) { int dist; for (int i = 1; i <= N; ++i) { if (i == b) continue; int x = ping(b, i) + 1; if (i == a) dist = x; d[x].push_back(i); } while (a != b) { dist--; for (auto it:d[dist]) if (ping(it, a) == 0) { travelTo(it); a = it; break; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 146 ms | 8952 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 133 ms | 9024 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 120 ms | 9124 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 125 ms | 9248 KB | Execution killed with signal 11 (could be triggered by violating memory limits) |
2 | Halted | 0 ms | 0 KB | - |