BlueBook
p100ex4 - Cross Country
Given a two digit code, decide if the code represents either:
Code | Output |
MG | midget girls |
MB | midget boys |
JG | junior girls |
JB | junior boys |
SG | senior girls |
SB | senior boys |
All codes are case sensitive, and will always be two letters long. Be sure to reject invalid codes by outputting "invalid code". Also, output what each code represents, as stated exactly.
Input
Input consists of two character code representing either one of the six categories described above.
Output
Ouput the full description of the code. If the code does not exist, output "invalid code".
Sample Input
JG
Sample Output
junior girls
All Submissions
Best Solutions
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 21, 2008
Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3
Comments (Search)
This question is very straightforward.
*Sigh*
[Edit: code removed by admin]
You have 2 problems with your code.
No. 1: Your curly brackets are in the wrong places.
I wont give you any examples, that would be cheating.
Also, you made a small typo. Hint: Read the question!
people who have solved the problem can look at your submission and help you.
it just says this