Skip to content

LucasKliemczak/Land-Ho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Land-Ho

Problem taken in Sololearn app tutorial

Land Ho! +10 XP

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.

About

Problem taken in Sololearn app tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published