摘要:
#include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long struct Fraction{ ll fenzi,fenmu; }; int gcd(int a,int b 阅读全文
摘要:
好累。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int parent[10010],exist[10010]; struct node{ int rs 阅读全文
摘要:
注意判断条件那个pr,pl位置不要写反了。我两次都写错了。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long const int N = 40; int L[N 阅读全文
摘要:
记得初始化,初始化,初始化!!! #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int dist[510]; int edges[510][510]; bo 阅读全文
摘要:
这题我比较直观的思路就是将分母和K计算出来公倍数,统一分母,然后分子从小到大依次枚举。 #include <bits/stdc++.h> using namespace std; const int inf = 0x3f3f3f3f; #define ll long long int gcd(int 阅读全文