PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#SCKTCUOIKI0003. Tính tiền vé theo độ tuổi (Admission Fee by Age)
Bài tập này chưa được xếp vào lộ trình.
Mục lục đề ⌄
Đang đọc
Tính tiền vé theo độ tuổi (Admission Fee by Age)
Admission Fee by Age
**Version: Phuoc Hung OJ Extended
Problem Statement
An amusement park sets admission prices according to a visitor’s age in completed years. Visitors younger than enter for free; visitors aged through pay VND; visitors aged or older pay VND. Determine the price for one visitor.
Input
The only line contains the integer , the visitor’s age in completed years.
Output
Print a single integer: the admission fee in VND. Do not print a currency unit or any thousands separator.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Input
13
Output
20000
Explanation
The visitor is years old. This lies in the range from to , so the fee is VND. The required integer output is 20000.
Liên quan
Trong các cuộc thi sau: