摘要: #include using namespace std;struct student{char num[100];char name[100];int a;int b;int c;}stu[100];void input(int N){for(int i=0;i>stu[i].num>>stu[i... 阅读全文
posted @ 2015-05-31 23:59 桑海田 阅读(3567) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){long long s,n,i,j,p;s=0;cin>>n;for(i=1;i<=n;i++){ p=1;for(j=1;j<=i;j++) p*=j;s+=p;}cout<<s<<endl;return 0;} 阅读全文
posted @ 2015-05-31 23:58 桑海田 阅读(3559) 评论(0) 推荐(0) 编辑