umilove98의 블로그

백준 8370 Java 본문

algorithm/백준

백준 8370 Java

umilove98 2021. 7. 17. 19:59
반응형

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Q8370 {

	public static void main(String[] args) throws IOException {
		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
		String inp = bf.readLine();
		StringTokenizer st = new StringTokenizer(inp);
		int n1, n2, k1, k2;
		n1 = Integer.parseInt(st.nextToken());
		k1 = Integer.parseInt(st.nextToken());
		n2 = Integer.parseInt(st.nextToken());
		k2 = Integer.parseInt(st.nextToken());
		
		System.out.println(n1*k1 + n2*k2);

	}

}
반응형

'algorithm > 백준' 카테고리의 다른 글

백준 10430 Python  (0) 2021.07.17
백준 8437 Java  (0) 2021.07.17
백준 6749 Java  (0) 2021.07.17
백준 5554 Java  (0) 2021.07.17
백준 5522 Java  (0) 2021.07.17