练69.3 整理药名
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
Doctors often pay little attention to capitalization when writing drug names, resulting in inconsistent formatting. You are required to write a program to standardize the drug names written by doctors into a uniform format, where the first character of the drug name is capitalized if it is a letter, and all other letters are lowercase. For example, "ASPIRIN" and "aspirin" should be standardized to "Aspirin".
Input Format
The first line contains a number , indicating that there are drug names to be standardized, where does not exceed .
The next lines each contain a word with a length not exceeding , representing the drug names written by the doctor. Drug names consist of letters, digits, and hyphens.
Output Format
lines, each containing a word, corresponding to the standardized form of the input drug names.
Sample
4
AspiRin
cisapride
2-PENICILLIN
Cefradine-6Aspirin
Cisapride
2-penicillin
Cefradine-6
20251206 B班作业(9 & 10)
- Status
- Done
- Problem
- 7
- Open Since
- 2025-12-7 0:00
- Deadline
- 2025-12-14 23:59
- Extension
- 24 hour(s)