随笔分类 -  hdu

acm.hdu
1003
该文被密码保护。
posted @ 2012-03-08 21:29 C's 阅读(1) 评论(0) 推荐(0)
1002[wrong answer]
该文被密码保护。
posted @ 2012-03-08 21:19 C's 阅读(0) 评论(0) 推荐(0)
A + B Problem II(acm1002)
摘要:c #include<stdio.h>#define max 20int main(){ int n,i; __int64 a[max],b[max],sum[max]; scanf("%d",&n); if(n>=1&&n<=max) { getchar(); for(i=0;i<n;i++) { scanf("%I64d %I64d",&a[i],&b[i]); sum[i]=a[i]+b[i]; } getchar(); for(i... 阅读全文
posted @ 2011-11-20 15:20 C's 阅读(159) 评论(0) 推荐(0)
Sum Problem(1001)
摘要:c#include<stdio.h>int main(){ int n; while(scanf("%d",&n)!=EOF) { printf("%.f\n\n",(1+n)/2.0*n); }}c#include<stdio.h>int main(){int i,n;__int64 sum;while(scanf("%d",&n)!=EOF){sum=0;for(i=1;i<=n;i++) sum+=i;printf("%I64d\n\n",sum);} retur 阅读全文
posted @ 2011-11-20 14:30 C's 阅读(111) 评论(0) 推荐(0)
A + B Problem(1000)
摘要:c#include<stdio.h>int main(){int a,b;while(scanf("%d %d",&a,&b)!=EOF)printf("%d\n",a+b);return 0;}original 阅读全文
posted @ 2011-11-20 14:20 C's 阅读(103) 评论(0) 推荐(0)