原创 the c programming language 習題 第二章

exercise2.4 void squeeze(char s[],char t[]) { int i,j,k; int lens,lent; lens=strlen(s); lent=strlen(t); for(i=0,k=

原创 simply scheme 第二章 練習

  Exercises Use the functions program for all these exercises. 2.1 In each line of the following table we’ve left out o

原创 simply scheme 第一章 練習+ 看書計劃

話說進了大學從來沒有完整地看完一本原版書,現在要努力了。 simply scheme          |        SICP          | 算法導論、compilers、計算機網絡、操作系統          |     

原创 hdu 1875

prim算法,用double,我第一次用float wa,看了別人代碼改成double就過了。 #include<stdio.h> #include<math.h> #define N 110 #define max 9999999 d

原创 simply scheme 第七章 練習

7.2 (let ((pi 3.14159) (pie '(lemon meringue)))     (se '(pi is) pi '(but pie is) pie)) 7.3 (define (superlative adje

原创 注意版本管理 啊

這次SB了!!!! 今天把前幾天寫的程序改出bug來了,找不出來了 哎   注意版本管理呀  啊啊啊啊啊啊啊啊啊啊

原创 simply scheme 第三章 練習

  3.1 Translate the arithmetic expressions (3+4)×5 and 3+(4×5) into Scheme expressions, and into plumbing diagrams. (×

原创 simply scheme 第五章 練習

5.1 (1)(I me mine) (2)(is empty) (3) 1234 (4) (23 45) (5) "" (6) () (7) 6 (8) ("" "") (9) 2   5.2    (define (f1 wd1 wd

原创 hdu 2066

第一遍總是做不出來!!!!!!! 這次第一次提交tle,自己發現不了錯誤,網上搜別人的代碼才發現問題:我是對每一對(起點,終點)均用一次dijkstra,其實只要對每個起點用一次就可以了,全部終點的信息都包含在裏面了。一次dijkstra

原创 simply scheme 第十一章 練習

<!-- @page { margin: 2cm } PRE.western { font-family: "DejaVu Sans Mono", monospace } PRE.cjk { font-f

原创 simply scheme 第六章 練習

6.1 nowhere man,3,goes 6.2 #t #f #f #t #t #t 6.3 (define (sign number)   (cond ((< number 0) 'negative)         ((= num

原创 hdu1063

注意邊界條件,如000010之類的例外,沒有'.' pku1001要比hdu1063弱 大數真煩人,誰讓我不會java呢  #include<stdio.h> #include<string.h> #define N 200 int m

原创 simply scheme 第八章 練習

8.1 (a e i o u) () 0 #f (16 144 0) (aioee) 25 (go d sunshi) 8.2 (keep vowel? 'birthday) (every first '(golden slumbers

原创 simply scheme 第九章 練習

<!-- @page { margin: 2cm } PRE.western { font-family: "DejaVu Sans Mono", monospace } PRE.cjk { font-f

原创 hdu1715

#include<stdio.h> #include<string.h> #define N 500 int main() { int i,j,n,p,f2[N],f1[N],f0[N]; scanf("%d",&n); whil