摘要:
BFS! #define _CRT_SECURE_NO_WARNINGS #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; typedef long long ll; int ans = 123456780; 阅读全文
摘要:
辗转相除法 非递归 int gcd(int a,int b) { while (a != 0 && b != 0) { int c = b; a = a % b; b = a; a = c; } if (a == 0) return b; else return a; } 递归 朴素 int gcd 阅读全文