Submit | All submissions | Best solutions | Back to list |
EIUPH005 - Vocative Pronouns |
Given a person Y with information about age and gender, we can call Y as:
- “Be” if he/she is not older than 5 years old.
- “Em” if he/she is not older than 20 years old.
- “Anh” if the person is not older than 35 years and the person is a man
- “Chi” if the person is not older than 35 years and the person is a girl
- “Chu” if the person is not older than 60 years and the person is a man
- “Co” if the person is not older than 60 years and the person is a woman
- “Ong” if the person is older than 60 years and the person is a man
- “Ba” if the person is older than 60 years and the person is a woman
Input
A number which is the age and a string which is the gender. The gender is “Nam” or “Nu”
Output
Ouput a word which is how we should call Y.
Example
Input: 18 Nam Output: Em
Added by: | Ha Minh Ngoc |
Date: | 2015-01-28 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | CSHARP C++ 4.3.2 CPP CPP14 JAVA |