
数论
文章平均质量分 65
用来写一些关于数论的算法知识
Timberjack-ovo-
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
O - 非常简单的数学题 SDUTOJ4098
运用了dp思想,费马定理,快速幂原创 2023-06-08 11:06:30 · 224 阅读 · 0 评论 -
codeforces 1311-c
方法一:打表 #include<bits/stdc++.h> using namespace std; const int maxn=2e5+10; int mis[maxn]; int main() { int zi[200]; int z1[27][maxn]; int t,x,y; char a[maxn]; scanf("%d",&...原创 2020-02-28 10:15:47 · 266 阅读 · 1 评论 -
关于快速幂的运用G - Maximum Palindromes HackerRank - maximum-palindromes
一道关于快速幂的题目,没做过几道这种题目,本人原来没能做出来,现在写出来自己现在看这道题的一些体会 G - Maximum Palindromes Madam Hannah Otto, the CEO of Reviver Corp., is fond of palindromes, or words that read the same forwards or backwards. She th...原创 2020-02-15 17:53:17 · 696 阅读 · 0 评论 -
素数筛
#include #include <bits/stdc++.h> using namespace std; const int maxn=10000100; const int maxm=10000100; int mark[maxm]; int Prime[maxm]; bool judge(int t) { if(t<=1) return false; for(int i...原创 2020-02-04 12:34:40 · 114 阅读 · 0 评论