/**
* 1.解题思路:a 和 b的乘积转换成字符串,再将字符串反转,最后将反转过的字符串转换成数字
*
* 2.参考博客:https://blog.csdn.net/liuchuo/article/details/82560818
**/
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
int a, b;
scanf("%d %d", &a, &b);
string s = to_string(a * b);
reverse(s.begin(), s.end());
printf("%d", stoi(s));
return 0;
}
1086 就不告诉你
最新推荐文章于 2024-04-05 13:24:28 发布

223

被折叠的 条评论
为什么被折叠?



