Logo
(追記) (追記ここまで)

32326번 - Conveyor Belt Sushi 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB26092303222288.844%

문제

There is a new conveyor belt sushi restaurant in town. Plates of sushi travel around the restaurant on a raised conveyor belt and customers choose what to eat by removing plates.

Each red plate of sushi costs \3,ドル each green plate of sushi costs \4,ドル and each blue plate of sushi costs \5ドル.

Your job is to determine the cost of a meal, given the number of plates of each colour chosen by a customer.

입력

The first line of input contains a non-negative integer, R, representing the number of red plates chosen. The second line contains a non-negative integer, G, representing the number of green plates chosen. The third line contains a non-negative integer, B, representing the number of blue plates chosen.

출력

Output the non-negative integer, C, which is the cost of the meal in dollars.

제한

예제 입력 1

0
2
4

예제 출력 1

28

힌트

This customer chose 0 red plates, 2 green plates, and 4 blue plates. Therefore, the cost of the meal in dollars is 0 × 3 + 2 × 4 + 4 × 5 = 28.

출처

Olympiad > Canadian Computing Competition & Olympiad > 2024 > CCC 2024 Junior Division 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /