-->
当前位置:首页 > 题库

PROGRAMMING:Sorting out the names of drugs

Luz5年前 (2021-05-10)题库446
###Problem description
Doctors often don't pay attention to the case when they write the names of drugs, and the format is confusing. Now you are required to write a program to sort out the medicine names written by doctors in disorder into a unified and standardized format, that is, if the first character of the medicine name is uppercase, other letters are lowercase. For example, aspirin and aspirin are sorted into aspirin.
###Enter a description
A number N in the first line indicates that there are n drug names to sort out, and N does not exceed 100.
Next, N lines, one word in each line, no more than 20 in length, indicate the name of the drug written by the doctor. The drug name consists of letters, numbers and -.
###Output description
N lines, one word for each line, corresponding to the standard writing of the drug name.
###Sample input
```in
four
AspiRin
cisapride
2-PENICILLIN
Cefradine-6
```
###Sample output
```out
Aspirin
Cisapride
2-penicillin
Cefradine-6
```
###Title Source
http://noi.openjudge.cn/ch0107/15/






answer:If there is no answer, please comment