CodeFights

View as PDF

Submit solution


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

Authors:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig
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 1 and 3\,000), and the higher your rating, the "better" you are. You have a rating of A, and there are N competitors lined up to fight you. If the difference between your ratings is greater than 100, 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: A.

The second line of input will have one integer: N.

The next N lines will have one integer each, k — 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 100, otherwise go away! 3:<. The answer to each competitor should be on separate lines.

Constraints

1 \le N \le 500

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

Comments


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

    Dis is EZ if you use if statements and for loops

    fite me!>:3


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

    fite me! >:3

    fite me! >:3 ?!?!?

    FITE?!?!?!


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

    mathfights.com