페이지

10824번: 네 수

https://www.acmicpc.net/problem/10824


$O(\lg n)$


#include<iostream>
#include<string>
using namespace std;
string a, b, c, d;
int main() {
    cin >> a >> b >> c >> d;
    cout << stoll(a + b) + stoll(c + d);
    return 0;
}

댓글 없음 :

댓글 쓰기