challenges

Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.

This project is maintained by chankruze

Land Ho!

You are on a large ship and you put down anchor near a beautiful beach. There is a small boat ferrying passengers back and forth, and you get in line for it. How long will you have to wait to get to the beach? You know that 20 people can fit on the boat and each trip to shore takes 10 minutes each way.

Task

Determine your wait time if you know the total number of people ahead of you in line.

Input Format

An integer that represents the total number of people ahead of you in line.

Output Format

An integer that represents the number of minutes that you will have to wait until you are standing on the beach.

Sample Input

15 

Sample Output

10

Explanation

You can get on the boat right away if you are the 16th person in line, it takes 10 minutes on the boat to get to the beach.

Solutions

Language Solution
C not available
CPP not available
C# not available
Python available
Java not available
Ruby not available
Swift not available