# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
781234 | 2023-07-13T00:25:11 Z | NK_ | Pipes (CEOI15_pipes) | C++17 | 749 ms | 65536 KB |
// Success consists of going from failure to failure without loss of enthusiasm #include <bits/stdc++.h> using namespace std; #define nl '\n' #define f first #define s second #define mp make_pair #define pb push_back using pi = pair<int, int>; template<class T> using V = vector<T>; const int eax = 12e6+5; const int nax = 1e5+5; int adj[eax]; int nxt[nax], start[nax]; int main() { cin.tie(0)->sync_with_stdio(0); for(int i = 0; i < eax; i++) nxt[i] = start[i] = -1; int N, M; cin >> N >> M; for(int e = 0; e < M; e++) { int u, v; cin >> u >> v; --u, --v; adj[2*e] = v; nxt[2*e] = start[u]; start[u] = 2*e; adj[2*e+1] = u; nxt[2*e+1] = start[v]; start[v] = 2*e+1; } return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 22 ms | 47572 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 23 ms | 47672 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 85 ms | 47800 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 136 ms | 47920 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 263 ms | 47924 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 260 ms | 47564 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 382 ms | 48080 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 493 ms | 51112 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 701 ms | 65536 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Runtime error | 749 ms | 65536 KB | Memory limit exceeded |
2 | Halted | 0 ms | 0 KB | - |