@陆麟瑞666 等一下,打错了

#include<bits/stdc++.h>
long long x;
int main(){
    cin>>x;
    cout<<x*(x-1)/2;
    return 0;
}
2018/6/18 16:05
65589