티스토리 뷰

Algorithm/BOJ

백준 8370번 C++

poopooreum 2023. 8. 23. 12:12
반응형
백준 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 <stdio.h>
int main() {
	int n1, n2, k1, k2;
scanf("%d %d %d %d", &n1, &k1, &n2, &k2);
	printf("%d", (n1*k1)+(n2*k2));
	return 0;
}

반응형

'Algorithm > BOJ' 카테고리의 다른 글

백준 8437번 파이썬  (0) 2023.08.23
백준 8393번 C++  (0) 2023.08.23
백준 7785번 C++  (0) 2023.08.22
백준 7576번 C++  (0) 2023.08.22
백준 7569번 C++  (0) 2023.08.22
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
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
글 보관함