摘要: #include<cstdio> #include<algorithm>using namespace std;const int maxn=1000;int main(){ int n,q,x,a[maxn],kase=0; while(scanf("%d%d",&n,&q)==2&&n) { p 阅读全文
posted @ 2017-04-15 10:12 天道酬勤之菜鸟先飞 阅读(2719) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string>#include<sstream>//stringstream的头文件 using namespace std;int main(){ string line; while(getline(cin,line)) { int sum= 阅读全文
posted @ 2017-04-15 09:57 天道酬勤之菜鸟先飞 阅读(3473) 评论(0) 推荐(0)