# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
752560 | 2023-06-03T08:24:31 Z | penguin133 | Computer Network (BOI14_network) | C++17 | 92 ms | 4804 KB |
#include <bits/stdc++.h> using namespace std; //#define int long long #include "network.h" #define pi pair<int, int> #define pii pair<int, pi> #define fi first #define se second #ifdef _WIN32 #define getchar_unlocked _getchar_nolock #endif mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count()); vector <int> tmp[10005]; void findRoute (int N, int a, int b) { int hi; for(int i=1;i<=N;i++){ int x = ping(i, b); if(i == a)hi = x; else tmp[x].push_back(i); } int cur = a; while(hi){ for(auto i : tmp[hi-1]){ if(ping(cur, i) == 1){ travelTo(i); cur = i; hi--; break; } } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 92 ms | 4804 KB | ping called with invalid arguments |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 76 ms | 4756 KB | ping called with invalid arguments |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 75 ms | 4760 KB | ping called with invalid arguments |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 88 ms | 4796 KB | ping called with invalid arguments |
2 | Halted | 0 ms | 0 KB | - |