# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1078342 | 2024-08-27T15:38:07 Z | kilikuma | Duathlon (APIO18_duathlon) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0): cout.tie(0); int n; cin >> n; cout << ((n * (n - 1) * (n - 2)) / 6) * 2 << '\n'; }