Submit | All submissions | Best solutions | Back to list |
STRINGFIT - Where Does it Fit? |
For an input word, determine whether it is alphabetically located before the word EXERCISE, after the word MUSCLES, or between EXERCISES and MUSCLES.
Input
The first line of the data set for this problem is an integer that represents the number of words in the list. Each word is on a separate line.
Output
The output is to be formatted exactly like that for the sample output given below.
Example
Input: 4 REST ACHE STRETCH GYM Output: REST IS AFTER MUSCLES ACHE IS BEFORE EXERCISE STRETCH IS AFTER MUSCLES GYM IS BETWEEN EXERCISE AND MUSCLES
Added by: | BYU Admin |
Date: | 2015-12-15 |
Time limit: | 1s-2s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 MAWK BC NCSHARP COFFEE DART FORTH GOSU JS-MONKEY JULIA KTLN OCT PROLOG PYPY3 R RACKET SQLITE SWIFT UNLAMBDA |
Resource: | TCEA State Programming Contest 2001 |