본문 바로가기

PS_Baekjoon

[백준 C++] 8370번 : Plane

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';
}

'PS_Baekjoon' 카테고리의 다른 글

[백준 C++] 5339번 : 콜센터  (0) 2023.04.22
[백준 C++] 4101번 : 크냐?  (0) 2023.04.21
[백준 C++] 7891번 : Can you add this?  (0) 2023.04.19
[백준 C++] 27323번 : 직사각형  (1) 2023.04.18
[백준 C++] 5671번 : 호텔 방 번호  (0) 2023.04.17