看板 ACMCLUB 關於我們 聯絡資訊
※ [本文轉錄自 Favonia 看板] 作者: Favonia () 站內: Favonia 標題: [眨眼] 絕妙 GCD 時間: Thu Nov 24 21:21:19 2005 int gcd (int a, int b) { if (b) while((a%=b) && (b%=a)); return a+b; } -- Favonia -- 我的個人版,歡迎參觀 :D -- ※ 發信站: 批踢踢兔(ptt2.cc) ◆ From: 140.112.30.41
Favonia:都忘記可以用 && 來取代 if推 11/24 21:22
Favonia:本篇經沈定推薦為 ACP 明年教材推 11/24 21:28
-- Give me wings to fly, when it's time to go higher... Give me courage to try, so my star will burn brighter... If I reach far enough, if I care deep enough with the love that you provide... Lord, give me wings to fly... -- ※ 發信站: 批踢踢兔(ptt2.cc) ◆ From: 140.112.30.41