摘要:
https://vjudge.net/problem/UVA-10539 统计区间内有多少数本身不是素数,但只有一个素因子 如果不预处理:600*8000*(log(2,1e12)+log3(2,1e12))……==TLE 预处理:8000*(log(2,1e12)+log3(2,1e12))…… 阅读全文
摘要:
https://vjudge.net/problem/UVA-1210 统计质数前缀和,枚举左右端点,这一段的区间和+1 阅读全文
摘要:
https://vjudge.net/problem/UVA-1213 dp[i][j][k] 前i个质数里选j个和为k的方案数 枚举第i个选不选转移 阅读全文
摘要:
https://vjudge.net/problem/UVA-1643 阅读全文
摘要:
https://vjudge.net/problem/UVA-808 阅读全文
摘要:
https://www.luogu.org/problem/show?pid=1606 题目描述 FJ has installed a beautiful pond for his cows' aesthetic enjoyment and exercise. The rectangular pon 阅读全文