随笔分类 - 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]>
阅读全文
摘要:#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]-'
阅读全文
摘要:#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(
阅读全文
摘要:#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
阅读全文
摘要:#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
阅读全文
摘要:#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
阅读全文