Problem D. Mood Luck

Problem

Bart is a young fellow in this big company. He is given N ranks from 1 to 5917 
and, based on the ranks, has to send either "DISQUALIFIED", "RETRY", or "PASS".

- if 1 <= rank <= 1000, Bart has to send "PASS"
- if 1001 <= rank <= 5917, Bart has to send "RETRY"

Note that in any case, Bart should never send "DISQUALIFIED".

Sample

Input:
2
500
5000

Output:
Case #1: PASS
Case #2: RETRY




:-)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-code/-/CyZLV80otDgJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to