# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
103229 | 2019-03-29T09:02:30 Z | E869120 | Duathlon (APIO18_duathlon) | C++14 | 112 ms | 8832 KB |
#include <iostream> #include <vector> using namespace std; #pragma warning (disable: 4996) long long N, M, A[200009], B[200009]; vector<int>X[100009]; int main() { scanf("%lld%lld", &N, &M); for (int i = 1; i <= M; i++) { scanf("%lld%lld", &A[i], &B[i]); X[A[i]].push_back(B[i]); X[B[i]].push_back(A[i]); } long long ans = 0LL; if (M == N - 1) ans = N * (N - 1) * (N - 2) / 3LL; if (M == N - 0) ans = N * (N - 1) * (N - 2); printf("%lld\n", ans); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2688 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2688 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 90 ms | 8824 KB | Output is correct |
2 | Correct | 84 ms | 8636 KB | Output is correct |
3 | Incorrect | 112 ms | 8680 KB | Output isn't correct |
4 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2688 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 91 ms | 8832 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 9 ms | 2816 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 69 ms | 8688 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2688 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 5 ms | 2688 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |