Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Goであると思ってたけど、なかった関数、定数 gcd
func gcd(x, y uint64) uint64 {
for ; y != 0; y, x = x%y, x {
return x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment