2010年7月18日

hdu 1092

摘要: #includeint main(){ int a,i,n,sum; while(scanf("%d",&n)&&n) { sum=0; for(i=0;i<n;i++) { scanf("%d",&a); sum+=a; } printf("%d/... 阅读全文

posted @ 2010-07-18 16:39 草头菜 阅读(110) 评论(0) 推荐(0) 编辑

hdu 1091

摘要: #includeint main(){ int a,b; while(scanf("%d%d",&a,&b)&&(a!=0||b!=0)) { printf("%d/n",a+b); }} 阅读全文

posted @ 2010-07-18 16:36 草头菜 阅读(69) 评论(0) 推荐(0) 编辑

hdu 1090

摘要: #includeint main(){ int a,b,n; scanf("%d",&n); while(n--) { scanf("%d%d",&a,&b); printf("%d/n",a+b); }} 阅读全文

posted @ 2010-07-18 16:35 草头菜 阅读(102) 评论(0) 推荐(0) 编辑

hdu 1089

摘要: #includeint main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) { printf("%d/n",a+b); }} 阅读全文

posted @ 2010-07-18 16:33 草头菜 阅读(70) 评论(0) 推荐(0) 编辑

hdu 1001

摘要: #includeint main(){ long long sum,i,m; while(scanf("%d",&m)!=EOF) { printf("%ld/n/n",m*(m+1)/2); }}读懂题目是成功的一半 阅读全文

posted @ 2010-07-18 16:31 草头菜 阅读(94) 评论(0) 推荐(0) 编辑

2010年7月17日

secure CRT的串口设置(ZZ)

摘要: http://blog.sina.com.cn/s/blog_645508ba0100iypc.html打开secureCRT,点击快速于连接。协议选择Serial,端口要跟你用到的端口匹配,我的是com4波特率要看具体的开发板,TQ2440的是115200.数据位8... 阅读全文

posted @ 2010-07-17 16:00 草头菜 阅读(476) 评论(0) 推荐(0) 编辑

2010年7月15日

hdu 1724

摘要: Ellipse不能用float#include#include#includeint main(){ int a,b,i,j,n,s,t; double re,ans,ant; scanf("%d",&n); while(n--) { ... 阅读全文

posted @ 2010-07-15 18:47 草头菜 阅读(90) 评论(0) 推荐(0) 编辑

2010年7月14日

simply scheme 第十五章 练习

摘要: 15.1(define (t num) (if(= num 0) '() (accumulate word(se (t (/(- num (remainder num 2))2)) (remainder num 2)))))15.2(... 阅读全文

posted @ 2010-07-14 21:48 草头菜 阅读(118) 评论(0) 推荐(0) 编辑

simply scheme 第十四章 练习

摘要: 14.1Keep(define (remove-once wd sent) (cond((empty? sent)'()) ((equal? wd(first sent)) (se (bf sent))) (else (se (... 阅读全文

posted @ 2010-07-14 19:59 草头菜 阅读(138) 评论(0) 推荐(0) 编辑

2010年7月12日

simply scheme 第十三章 练习

摘要: 13.13 calls ape pe e13.213.313.4n never reduce to a smaller n13.513.6I know but how to expain 阅读全文

posted @ 2010-07-12 11:18 草头菜 阅读(93) 评论(0) 推荐(0) 编辑

导航