提交时间:2022-07-13 13:26:46
运行 ID: 51712
#include <bits/stdc++.h> using namespace std; int x; int main(){ scanf("%d",&x); printf("%d",(x-2)*(x-1)/2); }