#P164. 统一信息格式

    ID: 412 Type: Default 1000ms 512MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>信息学奥赛导学(C++语言基础入门)

统一信息格式

题目描述
给定N行文本(1≤N≤100,每行长度≤50),需要对每行文本进行格式化:
如果第一个字符是字母,则转换为大写
其余所有字母转换为小写
(文本中可能包含空格和非字母字符,这些字符保持不变)

输入数据 1

6  
where there's A will, there's a Way  
12360  
Every cloud has a silver lining  
Chinese Restaurant  
Actions speak louder than words  
Better late than never  

输出数据 1

Where there's a will, there's a way  
12360  
Every cloud has a silver lining  
Chinese restaurant  
Actions speak louder than words  
Better late than never