看板ACMCLUB
标 题[眨眼] 绝妙 GCD
发信站批踢踢兔 (Thu Nov 24 21:29:02 2005)
转信站ptt!Group.NCTU!grouppost!Group.NCTU!ptt2
※ [本文转录自 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
1F:→ Favonia:都忘记可以用 && 来取代 if推 11/24 21:22
2F:→ 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