#include <iostream>
#include <algorithm>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string x, y, temp;
cin >> x >> y;
reverse(x.begin(), x.end());
reverse(y.begin(), y.end());
temp = to_string(stoi(x) + stoi(y));
reverse(temp.begin(), temp.end());
cout << stoi(temp);
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 1377๋ฒ - ๋ฒ๋ธ ์ํธ (0) | 2021.11.06 |
---|---|
[๋ฐฑ์ค,c++] 1371๋ฒ - ๊ฐ์ฅ ๋ง์ ๊ธ์ (0) | 2021.11.05 |
[๋ฐฑ์ค,c++] 11497๋ฒ - ํต๋๋ฌด ๊ฑด๋๋ฐ๊ธฐ (0) | 2021.11.05 |
[๋ฐฑ์ค,c++] 1356๋ฒ - ์ ์ง ์ (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13549๋ฒ - ์จ๋ฐ๊ผญ์ง3 (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13420๋ฒ - ์ฌ์น์ฐ์ฐ (0) | 2021.11.04 |
๋๊ธ