文章

84

粉丝

2

获赞

609

访问

75.1k

头像
翻转数的和 题解:
P1003 兰州大学机试题
发布于 2026年1月
阅读数 765

#include<iostream>
#include<algorithm>

using namespace std;

int main() {
	
	string a, b;
	while (cin >> a >> b) {
		reverse(a.begin(),a.end());
		reverse(b.begin(),b.end());
		cout << atoi(a.c_str()) + atoi(b.c_str()) << endl;
	}
	
	return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发