随笔分类 -  杭电水题

摘要:#include<iostream> #include<string> #include<string.h> #include<math.h> #include<cstdio> using namespace std; int main(){ int n,ss=0; int hh[10]; bool 阅读全文
posted @ 2016-02-11 20:47 咸咸的告别 阅读(181) 评论(0) 推荐(0)
摘要:#include using namespace std; int main(){ int a,b,n,m; int f[50]; while(cin>>a>>b>>m){ if(a==0&&b==0&&m==0) break; f[1]=1; ... 阅读全文
posted @ 2015-04-04 21:06 咸咸的告别 阅读(292) 评论(0) 推荐(0)
摘要:题目中并没有给出数据大小,所以应当考虑数据很大的时候,所以应当采用字符串的形式#includeusing namespace std;int main(){ char n[1000]={}; while(cin>>n&&n[0]!='0'){ int sum... 阅读全文
posted @ 2015-03-26 14:57 咸咸的告别 阅读(119) 评论(0) 推荐(0)