Cross Country - BlueBook
Time: 1 s
Memory: 125 MB
Memory: 125 MB
Given a two character code, decide if the code represents either:
All codes are case sensitive, and will always be two characters long. Be sure to reject invalid codes by outputting "invalid code". Also, output what each code represents, as stated exactly.
| Code | Output |
|---|---|
| MG | midget girls |
| MB | midget boys |
| JG | junior girls |
| JB | junior boys |
| SG | senior girls |
| SB | senior boys |
Input
Input consists of a two character code representing either one of the six categories described above.
Output
Output the full description of the code. If the code does not exist, output "invalid code".
Examples
| Input | Output |
|---|---|
|
JG
|
junior girls
|
Problem Info
| Problem ID | 461 |
| Time Limit | 1000 ms |
| Memory Limit | 128000 KB |
| Moderators | pixelarco |
Statistics
Submit
You need to Login or Registration for submit your solution