随笔分类 - 数学
摘要:https://www.acwing.com/problem/content/4284/ #include <iostream> #include <cstring> #include <algorithm> using namespace std; typedef long long LL; co
阅读全文
摘要:https://www.acwing.com/problem/content/1648/ 思路: 如果单纯的用试除法去做,可能会超时,我们在这里先弄出来根号内的所有质数,然后用质数来做。 #include <iostream> #include <cstring> using namespace s
阅读全文
摘要:https://www.acwing.com/problem/content/1535/ ` 思路: 暴力肯定是不可能的,枚举每一个的情况,分类讨论。 #include <iostream> #include <vector> using namespace std; typedef long lo
阅读全文

浙公网安备 33010602011771号