#P1095. 练17.2 公园门票

    ID: 96 传统题 1000ms 64MiB 尝试: 209 已通过: 87 难度: 5 上传者: 标签>http://bas.ssoier.cn:8086/problem_show.php?pid=3096选择结构

练17.2 公园门票

Description

公园门票的票价是每人$50$元,一次购票满$30$张,每张可以少收$2$元。试编写自动计费系统程序。

Input Format

输入一个正整数,表示购票的数量,输入数字在long long范围内。

Output Format

输出一个整数,表示用户实际需要支付的金额。
30
1440

Source

http://bas.ssoier.cn:8086/problem_show.php?pid=3096 选择结构