CT286

Ojas's coins Reckoning

EasyL1 · Pixel PusherAcceptance: 0.0%XP: 5

Caravans arrive at the herring shoals of Silverfin with crates of coins, and Ojas the scribe must account for every last one. Task: Given a year y, print which century it belongs to (year 1-100 is century 1, 101-200 is 2, and so on). Input format: One line with a single integer y. Output format: Print the century number. Constraints: 1 <= y <= 10000.

Example 1:

Input: 6618
Output: 67

Example 2:

Input: 5417
Output: 55

Example 3:

Input: 3837
Output: 39

Constraints:

1 <= y <= 10000.

Loading...
Test Cases:No test cases
No test cases available.
Ojas's coins Reckoning - EASY Coding Problem | CodeTikki