Skip to content
XCPC Notes
搜索
K
Main Navigation
首页
算法模板
知识点
竞赛题解
Appearance
Menu
Return to top
本页目录
发布时间:2024-07-31
欧几里得求GCD $ O(logN) $
cpp
int
gcd
(
int
a
,
int
b
)
{
return
b
?
gcd
(b, a
%
b)
:
a;
}