Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:30, xbeatdroperzx
Gerard is currently working as an entry-level customer support technician, but he would like to someday become a software developer. what is the best first step to understand what he should do? ask his manager for a new job or at least a job recommendation study graphic design in order to obtain the necessary skills use career resources to investigate what skills and education are required work part-time as an entry-level web developer question 13 (true/false worth 6 points) (08.03 lc) career resources are used to explore career options and find career information. true false question 14(multiple choice worth 6 points) (08.01 mc) classify the following skills: writing html code, evaluating color theory, using design principles. hard skills interpersonal skills people skills soft skills question 15 (true/false worth 6 points) (08.03 lc) a mentor is a person who is advised, trained, or counseled by a trusted mentee. true false
Answers: 2
image
Computers and Technology, 22.06.2019 11:00, Lacey9319
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
image
Computers and Technology, 24.06.2019 02:10, sIatt
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
image
Computers and Technology, 24.06.2019 08:00, qveenvslayin
How can smart devices benefit businesses, organizations, and social communities in the global marketplace?
Answers: 1
Do you know the correct answer?
Nikky and Byron are playing a silly game in gym class. Nikky is told by his teacher to walk forward...

Questions in other subjects:

Konu
Mathematics, 10.12.2020 21:30
Konu
Biology, 10.12.2020 21:30
Konu
Biology, 10.12.2020 21:30