#include<iostream>
#include<string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string str = to_string(a*b);
cout << stoi(string(str.rbegin(), str.rend())); //数字倒叙输出
return 0;
}
//最后输出的是数字,需要去除字符前的0
#include<iostream>
#include<string>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
string str = to_string(a*b);
cout << stoi(string(str.rbegin(), str.rend())); //数字倒叙输出
return 0;
}
//最后输出的是数字,需要去除字符前的0
本文标题:PAT 1086 就不告诉你 (15 分)
本文链接:https://www.haomeiwen.com/subject/lhxqhctx.html
网友评论