Live2D
摘要: 背景:给定$a$,\(b\),\(m\),求 \(a^b \mod m\) 常规方法: $O(n)$的时间复杂度,循环一遍即可,程序如下(用pow函数也可): #include <iostream> using namespace std; int a,b,m; int ans=1; int mai 阅读全文
posted @ 2020-10-05 22:36 不要学习szb 阅读(79) 评论(0) 推荐(0)