@陆麟瑞666 等一下,打错了
#include<bits/stdc++.h> long long x; int main(){ cin>>x; cout<<x*(x-1)/2; return 0; }