C++)
#include <iostream>
#include <string>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string a, b, c, d;
cin >> a >> b >> c >> d;
cout << stol(a + b) + stol(c + d);
return 0;
}
Python)
import sys
read = sys.stdin.readline
a,b,c,d = read().rstrip().split()
print(int(a+b)+int(c+d))'백준 1 > 기초' 카테고리의 다른 글
| [백준 2908] 상수 (C++/Python) (0) | 2020.12.05 |
|---|---|
| [백준 1316] 그룹 단어 체커 (C++/Python) (0) | 2020.12.05 |
| [백준 10808] 알파벳 개수 (C++ / Python) (0) | 2020.12.05 |
| [백준 11655] ROT 13 (C++/Python) (0) | 2020.12.05 |
| [백준 2743] 단어 길이 재기 (C++/Python) (0) | 2020.12.05 |