B. 【例17.2】 蜗牛爬行

    Type: Default 1000ms 64MiB

【例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

A snail is preparing to journey to a mysterious kingdom. It is known that it needs to eat vegetable leaves to replenish energy while crawling. For the first 66 centimeters of its journey, it eats 55 milligrams of vegetable leaves per centimeter. For any distance beyond 66 centimeters, it eats 77 milligrams of vegetable leaves per centimeter. Given that today it crawled nn centimeters towards the mysterious kingdom, how many milligrams of vegetable leaves will it eat?

Input Format

Input is an integer nn, representing the distance the snail crawled (1n101≤n≤10).

Output Format

Output a single line containing one integer, representing the number of milligrams of vegetable leaves the snail ate.

Sample

5
25

20251122 A班作业(7)

Not Claimed
Status
Done
Problem
7
Open Since
2025-11-22 0:00
Deadline
2025-11-30 23:59
Extension
24 hour(s)