Notice
Recent Posts
Recent Comments
Link
250x250
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

피너클의 it공부방

백준 8370 Plane (c++) : 피너클 본문

백준

백준 8370 Plane (c++) : 피너클

피너클 2022. 5. 15. 22:58
728x90
반응형

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 a, b, c, d;

int main()
{
	cin.tie(0);
	cout.tie(0);
	ios::sync_with_stdio(0);
	
	cin >> a >> b >> c >> d;
	cout << a * b + c * d << endl;
}

 

 

전체 코드다.

728x90
반응형
Comments