#SCKTIFELSE0000004. Tính tiền vé tham quan (Admission Ticket Price)
Bài tập này chưa được xếp vào lộ trình.
Mục lục đề ⌄
Tính tiền vé tham quan (Admission Ticket Price)
Admission Ticket Price
Version: Phuoc Hung OJ Extended
Problem Statement
An amusement park sells three ticket categories. Category has a base price of VND, category costs VND, and category costs VND. The payable amount also depends on age: customers younger than enter free; those aged through pay of the base price; those aged through pay ; and those aged or older pay . Given the ticket category and a customer’s age, calculate the amount due.
Input
A single line contains two integers loai_ve and tuoi, separated by a space. loai_ve is the ticket category and tuoi is the customer age.
Output
Print one integer giving the amount due in Vietnamese dong, without a currency symbol or thousands separators.
Subtasks
-
Subtask 1 (20 points): ;
-
Subtask 2 (30 points): ;
-
Subtask 3 (50 points): ;
Examples
Example 1
Input
1 5
Output
0
Explanation
Category costs VND, but a 5-year-old enters free and pays .
Example 2
Input
2 16
Output
75000
Explanation
Category costs VND; a 16-year-old pays , or VND.
Example 3
Input
3 64
Output
140000
Explanation
Category costs VND; a 64-year-old pays , or VND.