数论
今天也要加油鸭!!!!!
渣渣学生党
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数论-矩阵快速幂
关于矩阵快速幂,自己综合各位大神们的模板敲了个板子,并没有添加取模,只是简单的运算参考资料矩阵快速幂总结#include<iostream> #include<cstring> using namespace std; const int maxn = 100; int n; struct matrix { int m[maxn][maxn]; }; matr...原创 2018-04-30 17:50:24 · 251 阅读 · 0 评论 -
桁和 / Digit Sum -atcoder
Problem Statement For integers b(b≥2) and n(n≥1), let the function f(b,n) be defined as follows: f(b,n)=n, when n<b f(b,n)=f(b, floor(n⁄b))+(n mod b), when n≥b Here, floor(n⁄b) denotes the large...原创 2019-01-27 08:17:32 · 354 阅读 · 0 评论
分享