subject

Nikky and Byron are playing a silly game in gym class. Nikky is told by his teacher to walk forward a steps (1 ā‰¤ a ā‰¤ 100) and then walk backward b steps (1 ā‰¤ b ā‰¤ 100), after which he repeats a forward, b backward, etc. Likewise, Byron is told to walk forward c steps (1 ā‰¤ c ā‰¤ 100) and then walk backward d steps (1 ā‰¤ d ā‰¤ 100), after which he repeats c forward, d backward, etc. You may assume that a ā‰„ b and c ā‰„ d.
Byron and Nikky have the same length of step, and they are required to take their steps simultane- ously (that is, Nikky and Byron will both step forward on their first steps at the same time, and this will continue for each step).
Nikky and Byron start walking from one end of a soccer field. After s steps (1 ā‰¤ s ā‰¤ 10000), the gym teacher will blow the whistle. Your task is to figure out who has moved the farthest away from the starting position when the whistle is blown.
Input Specification
The input will be the 5 integers a, b, c, d, and s, each on a separate line.
Output Specification
The output of your program will be one of three possibilities: Nikky if Nikky is farther ahead after s steps are taken; Byron if Byron is farther ahead after s steps are taken; Tied if Byron and Nikky are at the same distance from their starting position after s steps are taken.
Sample Input
4 2 5 3 12
Output for Sample Input
Byron
Explanation of Output for Sample Input
Notice that after 12 steps, Nikky has moved 4 āˆ’ 2 + 4 āˆ’ 2 steps, for a total of 4 steps from the starting position, whereas Byron has moved 5 āˆ’ 3 + 4 steps, for a total of 6 steps from the starting position. Thus, Byron is ahead.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
You know the right answer?
Nikky and Byron are playing a silly game in gym class. Nikky is told by his teacher to walk forward...
Questions
question
Mathematics, 30.03.2021 21:30
question
Mathematics, 30.03.2021 21:30
question
Biology, 30.03.2021 21:30
Questions on the website: 13722363