[Templates That Are Usually Used]Greatest Common Divisor

#include <iostream> #include <cstdio> #include <algorithm> using namespace std; int gcd(int a, int b) { int ans; if(a < b) swap(a, b); if(b == 0) ans = a; else ans = g
相關文章
相關標籤/搜索