E. 练69.3 整理药名

    Type: Default 1000ms 256MiB

练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 nn, indicating that there are nn drug names to be standardized, where nn does not exceed 100100.
The next nn lines each contain a word with a length not exceeding 2020, representing the drug names written by the doctor. Drug names consist of letters, digits, and hyphens.

Output Format

nn lines, each containing a word, corresponding to the standardized form of the input drug names.

Sample

4
AspiRin
cisapride
2-PENICILLIN
Cefradine-6
Aspirin
Cisapride
2-penicillin
Cefradine-6

20251206 B班作业(9 & 10)

Not Claimed
Status
Done
Problem
7
Open Since
2025-12-7 0:00
Deadline
2025-12-14 23:59
Extension
24 hour(s)