加载中...

随笔分类 -  数学

摘要:https://www.acwing.com/problem/content/4284/ #include <iostream> #include <cstring> #include <algorithm> using namespace std; typedef long long LL; co 阅读全文
posted @ 2022-08-25 20:14 英雄不问出处c 阅读(38) 评论(0) 推荐(0)
摘要:https://www.acwing.com/problem/content/1648/ 思路: 如果单纯的用试除法去做,可能会超时,我们在这里先弄出来根号内的所有质数,然后用质数来做。 #include <iostream> #include <cstring> using namespace s 阅读全文
posted @ 2022-08-22 19:46 英雄不问出处c 阅读(29) 评论(0) 推荐(0)
摘要:https://www.acwing.com/problem/content/1535/ ` 思路: 暴力肯定是不可能的,枚举每一个的情况,分类讨论。 #include <iostream> #include <vector> using namespace std; typedef long lo 阅读全文
posted @ 2022-08-22 12:08 英雄不问出处c 阅读(36) 评论(0) 推荐(0)