摘要:
n<=15 a,b<=10^9 N<=10^4 #include<cstdio> #define LL long long int n, a, b, ans, t[20]; LL gcd(LL x, LL y) { if (!y) return x; return gcd(y, x%y); } vo 阅读全文
摘要:
#include <iostream> #include <cstdio> #include <cstring> using namespace std; const int N=1e4+5; int head[N];//链式地址 int cnt=0;//边的下标 struct node{ int 阅读全文