윤일무이
[백준-Python] 8370번: Plane 본문
728x90
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
📌 풀이
N1열 N2열 / K1좌석 K2좌석이 있는데
총 좌석이 몇 개 있는지 봐주면 된다.
간단하게 N1*K1 + N2*K2 해주면 되는 문제다.
오히려 영어로 나온 문제들이 훨씬 쉬운 듯...?
✅ 코드
n1, k1, n2, k2 = map(int, input().split())
print((n1*k1)+(n2*k2))728x90