PS_Baekjoon

[백준 C++] 8370번 : Plane

SMILELY 2023. 4. 20. 17:28

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

 

8370번: Plane

In the first and only line of the standard input there are four integers n1, k1, n2 and k2 (1 ≤ n1, k1, n2, k2 ≤ 1 000), separated by single spaces.

www.acmicpc.net

코드 :

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
    cin.tie(NULL);
    ios::sync_with_stdio(false);

    int a,b,c,d;

    cin >> a >> b >> c >> d;
    cout << (a*b) + (c*d) << '\n';
}