看板
[ KS96-310 ]
討論串[問題] 程設兩題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
雖然我現在趕時間. 不過答應毛哥的事一定要做到. 遞迴最難的是algorithm. 不過題目既然給了. 很快就寫完啦~. int gcd(int x int y){. if(y==0). return x;. return gcd(y, x%y);. }. main(){printf("%d",gc
(還有18個字)
內容預覽:
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
下一頁
尾頁