原创 hdu 1047
噁心的題目 1.讀不懂的題目,首先我沒搞清輸入輸出格式,不知道怎麼做 2.沒注意邊界條件 這是非常噁心的,搜索了別人的解題報告才做出這道題 因爲這道題喪失了A題的鬥志,以至於兩個星期都沒有再碰onlineJudge 要提高自己的抗挫折能力
原创 simply scheme 第四章 練習
4.1 (+ 8 (* 2 12)) 4.2 A->(B +)->(C *) 4.4 (1) two return values (2) wrong expression (3) no argument
原创 hdu 1753
注意邊界條件 0 #include<stdio.h> #include<string.h> #define N 440 void print(int t[]) { int i,j,k,high,low; for(low=0;low<2
原创 simply scheme 第十二章 練習
<!-- @page { margin: 2cm } PRE.western { font-family: "DejaVu Sans Mono", monospace } PRE.cjk { font-f
原创 simply scheme 第十三章 練習
<!-- @page { margin: 2cm } PRE.western { font-family: "DejaVu Sans Mono", monospace } PRE.cjk { font-f
原创 secure CRT的串口設置(ZZ)
http://blog.sina.com.cn/s/blog_645508ba0100iypc.html 打開secureCRT,點擊快速於連接。協議選擇Serial,端口要跟你用到的端口匹配,我的是com4 波特率要看具體的開發板,TQ
原创 hdu 1095
#include<stdio.h>int main(){ int a,b,i,n,sum; while(scanf("%d%d",&a,&b)!=EOF) { sum=a+b; printf("%d/n/n",sum); }}
原创 sicp 2.3-2.5 習題
2.53(a b c)((george))((y1 y2))(y1 y2)#f#f(red shoes blue socks)2.54(define (equal? list1 list2) (cond ((or(null? list1
原创 simply scheme 第十四章 練習
14.1 Keep (define (remove-once wd sent) (cond((empty? sent)'()) ((equal? wd(first sent)) (se (bf sent)
原创 hdu 1096
#include<stdio.h> int main() { int m,a,i,n,sum; scanf("%d",&m); while(m--) { scanf("%d",&n); sum=0; for(i=0;i
原创 hdu 1092
#include<stdio.h> int main() { int a,i,n,sum; while(scanf("%d",&n)&&n) { sum=0; for(i=0;i<n;i++) { scanf("%
原创 sicp 第一章 習題
1.1101283619#f4166161.2(/ (+ 5 4 (- 2 (- 3 (+ 6 (/ 1 3)))))(* 3 (- 6 2)(- 2 7)))1.3(define (sum x y z) (+ (square(larg
原创 SICP 第二章第一節 習題 2.1-2.16
2.1(define (make-rat n d) (let ((abs-n (abs n)) (abs-d (abs d)) (g (gcd (abs n) (abs d)))) (if (posit
原创 hdu 1161
#include<stdio.h> int main() { int i; char str[200]; while(gets(str)) { for(i=0;str[i]!='/0';i++) { if(str[i
原创 hdu 1090
#include<stdio.h> int main() { int a,b,n; scanf("%d",&n); while(n--) { scanf("%d%d",&a,&b); printf("%d/n",a+b);