討論串[問題] 程設兩題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓12(12推 0噓 4→)留言16則,0人參與, 最新作者trashprince (Contigo ergo "XOR"!!)時間16年前 (2009/05/19 00:14), 編輯資訊
0
0
0
內容預覽:
雖然我現在趕時間. 不過答應毛哥的事一定要做到. 遞迴最難的是algorithm. 不過題目既然給了. 很快就寫完啦~. int gcd(int x int y){. if(y==0). return x;. return gcd(y, x%y);. }. main(){printf("%d",gc
(還有18個字)

推噓2(2推 0噓 5→)留言7則,0人參與, 最新作者austinting (神經細胞)時間16年前 (2009/05/18 00:52), 編輯資訊
0
0
0
內容預覽:
The gcd of x and y is defined recursively as follows: IF y is equal to 0,. then gcd( x, y ) is x; otherwise gcd( x, y ) is gcd( y, x%y ) where % is th
(還有147個字)
首頁
上一頁
1
下一頁
尾頁