피너클의 it공부방
백준 8370 Plane (c++) : 피너클 본문
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
반응형
'백준' 카테고리의 다른 글
백준 2530 인공지능 시계 (c++) : 피너클 (0) | 2022.05.20 |
---|---|
백준 1135 뉴스 전하기 (c++) : 피너클 (0) | 2022.05.17 |
백준 14652 나는 행복합니다~ (c++) : 피너클 (0) | 2022.05.14 |
백준 1034 램프 (c++) : 피너클 (0) | 2022.05.13 |
백준 1205 등수 구하기 (c++) : 피너클 (0) | 2022.05.13 |
Comments