摘要: 前缀和 #include<iostream> using namespace std; const int N = 100010; int n,m; int a[N],s[N]; int main() { scanf("%d%d",&n,&m); for(int i=1;i<=n;i++)scanf 阅读全文
posted @ 2022-03-23 21:56 wanzg 阅读(32) 评论(0) 推荐(0)
摘要: 高精度除法(跟前面差不多,感觉挺简单的) #include<iostream> using namespace std; #include<vector> #include<algorithm> vector<int> div(vector<int>&A,int b,int&r) { vector< 阅读全文
posted @ 2022-03-23 21:15 wanzg 阅读(50) 评论(0) 推荐(0)
摘要: 努力努力,为了记忆 #include<iostream> using namespace std; #include<vector> vector<int> mul(vector<int>&A,int b) { int t=0; vector<int> C; for(int i=0;i<A.size 阅读全文
posted @ 2022-03-23 19:27 wanzg 阅读(55) 评论(0) 推荐(0)
摘要: (纯手打,没有复制,旨在锻炼自己,防止忘记) #include<iostream> using namespace std; #include<vector> bool cmp(vector<int>&A,vector<int>&B) { if(A.size()!=B.size())return A 阅读全文
posted @ 2022-03-23 18:50 wanzg 阅读(44) 评论(0) 推荐(0)