This website requires JavaScript.
Explore
Help
Sign In
subcrip
/
cp-templates
Watch
1
Star
0
Fork
You've already forked cp-templates
0
Code
6362b6071d
cp-templates
/
number
/
gcd.rs
6 lines
98 B
Rust
Raw
Blame
History
let
gcd
=
|
mut
x
:
i64
,
mut
y
:
i64
|
{
while
y
!
=
0
{
(
x
,
y
)
=
(
y
,
x
%
y
)
;
}
x
}
;
View Git Blame
Copy Permalink