Skip to content

E28691: 字符串中的整数求和

http://cs101.openjudge.cn/pctbook/E28691/

cpp
#include <iostream>
using namespace std;

int main()
{
    string a, b;
    cin >> a >> b;
    cout << stoi(a) + stoi(b) << endl;
    return 0;
}