## CodeFights

View as PDF

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 16M

Authors:
Problem type
##### Prep 1

CodeFights, a website where you pit your debugging skills against others, has been recently popular among your friends. The trick to winning is knowing when to pick fights! Each player has a rating based on the Elo system (an integer between and ), and the higher your rating, the "better" you are. You have a rating of , and there are competitors lined up to fight you. If the difference between your ratings is greater than , you should reject their challenge. Otherwise, you should accept. Can you write a program to decide when you should program?

#### Input Specification

The first line of input will have one integer: .

The second line of input will have one integer: .

The next lines will have one integer each, — representing the rating of a competitor who wants to fight you.

#### Output Specification

For each competitor, either output fite me! >:3 if the rating difference is less than or equal to , otherwise go away! 3:<. The answer to each competitor should be on separate lines.

#### Sample Input

1500
5
1200
1100
1399
1450
1530

#### Sample Output

go away! 3:<
go away! 3:<
go away! 3:<
fite me! >:3
fite me! >:3

• commented on Nov. 27, 2018, 4:46 p.m.

Dis is EZ if you use if statements and for loops

fite me!>:3

• commented on Aug. 23, 2018, 9:06 a.m.

fite me! >:3

fite me! >:3 ?!?!?

FITE?!?!?!

• commented on April 2, 2015, 3:01 p.m.

mathfights.com