# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
603206 | beaconmc | Duathlon (APIO18_duathlon) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
from math import comb
n,m = map(int, input().split())
print((n-2)*comb(n,2)*2)