How to print minimum number of steps elephant needs to make?

How to print minimum number of steps elephant needs to make?

The first line of the input contains an integer x ( 1 ≤ x ≤ 1 000 000 ) — The coordinate of the friend’s house. Print the minimum number of steps that elephant needs to make to get from point 0 to point x. In the first sample the elephant needs to make one step of length 5 to reach the point x.

Where is the elephant’s friend’s house on the coordinate line?

An elephant decided to visit his friend. It turned out that the elephant’s house is located at point 0 and his friend’s house is located at point x(x > 0) of the coordinate line. In one step the elephant can move 1, 2, 3, 4 or 5 positions forward. Determine, what is the minimum number of steps he need to make in order to get to his friend’s house.

How many moves does an elephant need to get to point x?

In the second sample the elephant can get to point x if he moves by 3, 5 and 4. There are other ways to get the optimal answer but the elephant cannot reach x in less than three moves.

What are some interesting trivia questions about elephants?

There is so much to know about them. This fun quiz trivia on elephants will give you a chance to know a little bit more about them. So have a look – here are 30 interesting trivia elephant quiz questions and answers. 1 The duration of pregnancy in elephants is considered the longest in land animals. It lasts for a period of ___ .

Why are there three terrains in hills like white elephants?

In “Hills Like White Elephants,” Hemingway uses the three different terrains to symbolize the state of the couple’s relationship and in particular Jig’s illusions about her life. When the story… The number two is used many times in “Hills Like White Elephants.”

There is so much to know about them. This fun quiz trivia on elephants will give you a chance to know a little bit more about them. So have a look – here are 30 interesting trivia elephant quiz questions and answers. 1 The duration of pregnancy in elephants is considered the longest in land animals. It lasts for a period of ___ .

Is it true that every elephant saw the same two monkeys heading toward the river?

However, the correct way to read that line is that every elephant saw the same two monkeys heading toward the river. Some people might argue that parrots are technically birds and not animals, so if your first answer was 3, that would also be correct.

What’s the most difficult thing to teach an elephant?

The most difficult thing to teach an elephant is the master call. Question 14. What happens when one give a master call to elephant? The elephant act fiercely on master call. It pulls down the trees in front of it and frightens away the animals. Question 15. What information is given in the lesson on the learning habits of the elephant?

Related Posts