백준 #32326번 Conveyor Belt Sushi

jhj·2024년 12월 30일

백준 JAVA

목록 보기
521/583
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		int r = sc.nextInt();
		int g = sc.nextInt();
		int b = sc.nextInt();
		int c = r * 3 + g * 4 + b * 5;
		
		System.out.println(c);
		sc.close();
	}
}
profile
개발자를 꿈꾸는

0개의 댓글