摘要: 水题链接 #include<iostream> #include<cstdio> #include<algorithm> using namespace std; const int N=1e3+10; int n; class stu { public: int idx; int Ch; int 阅读全文
posted @ 2020-07-22 01:28 30天CF上蓝!!! 阅读(331) 评论(0) 推荐(0) 编辑
摘要: C/C++ 四种清空输入缓冲区的方法 比较实用的一种 char c; while(c=getchar()!='\n'); 或者是这种 cin.ignore(count,c); count代表要清除的字符的长度,c代表某个字符 一般把count设的大一些 例如cin.ignore(1000,'\n') 阅读全文
posted @ 2020-07-22 01:24 30天CF上蓝!!! 阅读(880) 评论(0) 推荐(0) 编辑