随笔分类 -  C++ / 高精度算法

摘要:#include <bits/stdc++.h> using namespace std; string a,b; bool f(){ if(a.size()>b.size()){ return true; }else{ for(int i = 0;i<a.size();i++){ if(b[i]> 阅读全文
posted @ 2024-10-24 22:13 王一行(小号) 阅读(5) 评论(0) 推荐(0) 编辑
摘要:#include <bits/stdc++.h> using namespace std; int main(){ string a,b; cin>>a>>b; vector<int> x,y; for(int i = a.size()-1;i>=0;i--){ x.push_back(a[i]-' 阅读全文
posted @ 2024-07-28 20:09 王一行(小号) 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <vector> using namespace std; int main(){ string a; int b,j = 0,j1 = 0; cin>>a>>b; vector<int> x,sum; for(int i = a.size( 阅读全文
posted @ 2024-06-07 20:29 王一行(小号) 阅读(11) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ string a,b; cin>>a>>b; vector<int> x,y,sum; for(int i = a.size 阅读全文
posted @ 2024-06-01 16:00 王一行(小号) 阅读(8) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <cmath> #include <vector> using namespace std; int main(){ string a,b; cin>>a>>b; vector<int> x,y; for(int i = a.size()-1 阅读全文
posted @ 2024-05-31 20:04 王一行(小号) 阅读(5) 评论(0) 推荐(0) 编辑
摘要:#include <bits/stdc++.h> using namespace std; int main(){ int n; string x; cin>>x>>n; vector<int> a; for(int i = x.size()-1;i>=0;i--){ a.push_back(x[i 阅读全文
posted @ 2024-05-25 10:03 王一行(小号) 阅读(12) 评论(0) 推荐(0) 编辑