下面是模板
#include<iostream>
#include<cstring>
#include<vector>
using namespace std;
vector<int> multi(vector<int> help , int b){
int temp = 0;
vector<int>c;
for(int i = 0 ; i< help.size()||temp>0 ; i++){
if(i<help.size())temp = temp+help[i]*b;
c.push_back(temp%10);
temp /= 10;
}
return c;
}
int main(){
int B;
string A;
cin>>A>>B;
if(B==0)cout<<0;
else{
vector<int> help;
for(int i = A.size()-1 ; i >= 0 ; i--)help.push_back(A[i]-'0');
auto res = multi(help,B);
for(int i = res.size()-1 ; i >= 0 ; i--){
cout<<res[i];
}
}
return 0;
}