![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法竞赛进阶指南
饕餮梼杌之徒
这个作者很懒,什么都没留下…
展开
-
线性DP
Mr. Young’s Picture Permutations 这道题我真心佩服,数组开成31,内存都爆了 存储空间卡的太好了,啧啧啧 #include<iostream> #include<algorithm> #include<cstring> using namespace std; typedef long long ll; int s[10]; int main(){ int k; while(cin>>k){ if原创 2021-02-08 14:40:04 · 59 阅读 · 0 评论 -
位运算
a^b 快速幂 // #include<bits/stdc++.h> #include<iostream> using namespace std; typedef long long ll; ll a,b,p; int main(){ cin>>a>>b>>p; int ans=1%p; while(b){ if(b&1) ans=ans*1ll*a%p; a=a*1ll*a%p;原创 2020-05-09 00:14:09 · 146 阅读 · 0 评论