
数论
今天也要加油鸭!!!!!
渣渣学生党
展开
-
数论-矩阵快速幂
关于矩阵快速幂,自己综合各位大神们的模板敲了个板子,并没有添加取模,只是简单的运算参考资料矩阵快速幂总结#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 · 228 阅读 · 0 评论 -
桁和 / Digit Sum -atcoder
Problem StatementFor 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≥bHere, floor(n⁄b) denotes the large...原创 2019-01-27 08:17:32 · 314 阅读 · 0 评论