题目:
代码:
# include<iostream>
# include<cstring>
using namespace std;
int main()
{
int A=0,B=0;
cin>>A>>B;
long Mul = A*B;
string S = std::to_string(Mul);
string res = "";
int len = S.size();
for(int i=len-1;i>=0;i--)
{
res += S[i];
}
cout<<stol(res)<<endl;
return 0;
}
结果:
PLUS(搬运):
string -》int系列
https://blog.csdn.net/weixin_42344452/article/details/80589355
其他解法:
https://blog.csdn.net/shiliang97/article/details/99361175
https://www.jianshu.com/p/e59e274ff368