leetcode 372. 超级次方(C语言)欧拉降次&&快速幂

题目连接:超级次方web 一开始直接用快速幂,结果直接超时。svg long long FastPow(long long a,long long c) { long long res=1; while(c) { if(c&1) { res*=a; res%=1337; }
相关文章
相关标签/搜索