如果你想楼主一样喜欢用cin,请记住,换行请用"\n"
一定不要写endl!
endl会刷新缓冲区导致常数异常大
另附两个常用的cin/cout 优化:
ios::sync_with_stdio(0); cin.tie(0);