摘要:
D 题意 问A B 两个数中有多少个互质的公约数 思路 只用考虑最大公约数的质因数即可 cpp include using namespace std; typedef long long ll; ll a,b,cnt = 1; int main(){ ios::sync_with_stdio(0) 阅读全文
摘要:
1000 1400 You can write straight forward simulation fast. (within 5 10 minutes) You can write brute force fast. (within 5 10 minutes) You can divide t 阅读全文
摘要:
"HDU 2680 " SPFA + 反向建图 cpp include include include include using namespace std; const int N = 1e3 + 10,M = 4e4 + 10,INF = 0x3f3f3f3f; int e[M],ne[M], 阅读全文