练17.2 公园门票
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
The park ticket price is 50 yuan per person. If you purchase 30 or more tickets at once, each ticket will be discounted by 2 yuan. Please write a program for the automatic billing system.
Input Format
Input a positive integer representing the number of tickets purchased, within the range of an int.
Output Format
Output an integer representing the actual amount the user needs to pay.
Sample
301440
20251122 A班作业(7)
- Status
- Done
- Problem
- 7
- Open Since
- 2025-11-22 0:00
- Deadline
- 2025-11-30 23:59
- Extension
- 24 hour(s)