摘要: #include<string>#include<iostream>usingnamespacestd;structInfo{stringsex;floata,b,c,d,e;};intmain(){Infoinfo[101];intn,i,k=0;cin>>n;while(k<n){intcountN=0,countI=0;cin>>info[i].sex>>info[i].a>>info[i].b>>info[i].c>>info[i].d>>info[i].e;if(info 阅读全文
posted @ 2012-04-07 15:53 逝者*恋世 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int a[100000]={0};int main(){int n;int i,len=1,j,temp=0;cin>>n;a[0]=1;for(i=2;i<=n;i++){for(j=0;j<len;j++){a[j]=i*a[j]+temp;temp=a[j]/10;a[j]%=10;}while(temp!=0){a[j++]=temp%10;temp/=10;}len=j;}len+=50-len%50;for(i=len-1;i>=0;i--){if((i+1)%5 阅读全文
posted @ 2012-04-07 13:50 逝者*恋世 阅读(238) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <stdlib.h>int main(){ int i,n,a,sum; sum=0; scanf("%d%d",&a,&n); for(i=0;i<n;i++) { sum+=a; a=a%10+10*a; } printf("%d\n",sum); return 0;} 阅读全文
posted @ 2012-04-07 12:35 逝者*恋世 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <cstdio>#include <cstring>using namespace std;const int N=1000;char a[N];int b[3*N];int main(){ while(scanf("%s",a)!=EOF) { memset(b,0,sizeof(b)); int len=strlen(a); int iKeep,iTez,iToz=0; for(int i=len-1;i>=2;i--) { iTez=0; iKeep=0; int iNu 阅读全文
posted @ 2012-04-07 11:41 逝者*恋世 阅读(345) 评论(0) 推荐(0) 编辑