随笔分类 -  超水的题

zjut1803
摘要:#include <stdio.h>#include <string.h>int main(){int n;scanf("%d",&n);while (n--){int m,r;char c[25];scanf("%d%d%s",&m,&r,c);printf("%d ",m);for (int j= 0; j < strlen(c); j++)for (int i=0;i<r;i++){printf("%c",c[j]);}printf("\n 阅读全文
posted @ 2013-05-30 15:49 雪落尘 阅读(95) 评论(0) 推荐(0)
zjut1800
摘要:#include <string>#include <vector>#include <iostream>#include <algorithm>using namespace std;bool vv(const string & a,const string &b){if (a.length() > b.length())return 0;else if (a.length() < b.length())return 1;elsereturn a<b;}int main(){for (int m,n;cin&g 阅读全文
posted @ 2013-05-30 15:40 雪落尘 阅读(90) 评论(0) 推荐(0)
zjut1858
摘要:#include <stdio.h>int main(){ int n; scanf("%d",&n); int sum =0; while ( n-- ) { int m; scanf("%d",&m); int summ = 0,p; while (m--) { scanf("%d",&p); summ += p; } printf("%d cleared\n",summ); sum += summ; ... 阅读全文
posted @ 2013-05-29 20:30 雪落尘 阅读(125) 评论(0) 推荐(0)