摘要: 考点:快速幂 快速幂模版求得是a的b次方%p 所以这个题做法是a=b=n,p=10 #include<bits/stdc++.h>using namespace std;int qmi(int a,int b,int p){ int res=1; while(b){ if(b&1){ res=res 阅读全文
posted @ 2025-08-13 19:49 Annaprincess 阅读(5) 评论(0) 推荐(0)
摘要: 第一天算法2025/8/13 复习内容:二分 2.P1102 A-B #include<bits/stdc++.h> using namespace std; const int N=2e5+6; int a[N]; map<int,int>mp;//存放数组里每个数出现次数 int main(){ 阅读全文
posted @ 2025-08-13 19:36 Annaprincess 阅读(9) 评论(0) 推荐(0)