标签:
#include <iostream> #include <cstring> using namespace std; int main() { int n,a,b; while(cin>>n) { a=n/2; b=n-a; cout<<a*(a-1)/2+b*(b-1)/2<<endl; } return 0; }
hdu 1214 圆桌会议
原文地址:http://www.cnblogs.com/nefu929831238/p/5502783.html