Eddy's mistakes

Problem Description

Eddy usually writes  articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy‘s English teacher be extremely discontentment.Now please you to write a procedure to be able in the Bob article English letter to turn completely the small letter.

Input

The input contains several test cases.each line consists a test case,Expressed Eddy writes in an article , by letter, blank space,numeral as well as each kind of punctuation

composition, the writing length does not surpass 1000 characters.

Output

For each test case, you should output an only line, after namely the result of transforms the lowercase letter.

Sample Input

weLcOmE tO HDOj Acm 2005!

Sample Output

welcome to hdoj acm 2005!

 1 #include <stdio.h>
 2 #include <ctype.h>
 3
 4 int main(){
 5     char c;
 6
 7     while((scanf("%c",&c))!=EOF){
 8
 9         while(c!=‘\n‘){
10             if(isupper(c)!=0)
11                 c=tolower(c);
12
13             printf("%c",c);
14
15             c=getchar();
16         }
17
18         printf("\n");
19     }
20
21     return 0;
22 }

Eddy's mistakes

时间: 2024-10-21 23:39:18

Eddy's mistakes的相关文章

HDU1161 Eddy&#39;s mistakes

Eddy's mistakes Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7588    Accepted Submission(s): 4274 Problem Description Eddy usually writes articles ,but he likes mixing the English letter use

Eddy&#39;s mistakes(字母大小写转换)strlwr函数的应用

Problem Description Eddy usually writes  articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy's English teacher be extremely disc

HDOJ/HDU 1161 Eddy&#39;s mistakes(大写字母转换成小写字母)

Problem Description Eddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy's English teacher be extremely disco

HDU1161 Eddy&amp;#39;s mistakes

Eddy's mistakes Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7588    Accepted Submission(s): 4274 Problem Description Eddy usually writes articles ,but he likes mixing the English letter use

hdu1161Eddy&#39;s mistakes

Problem Description Eddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "coMpUtEr scIeNce" by him, this mistakes lets Eddy's English teacher be extremely disco

HDU 1163 Eddy&#39;s digital Roots

Eddy's digital Roots Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5783    Accepted Submission(s): 3180 Problem Description The digital root of a positive integer is found by summing the digit

杭电 HDU 1164 Eddy&#39;s research I

Eddy's research I Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7117    Accepted Submission(s): 4268 Problem Description Eddy's interest is very extensive, recently  he is interested in prime

New to Machine Learning? Avoid these three mistakes

http://blog.csdn.net/pipisorry/article/details/43973171 James Faghmous提醒机器学习初学者要避免的三方面错误,推荐阅读 New to Machine Learning? Avoid these three mistakes Common pitfalls when learning from data Machine learning (ML) is one of the hottest fields in data scien

Some Simple Mistakes I had

This week, I had some mistakes. It is really hard to say: #1 py business what's happening l = abs(px[x] - bl); r = abs(px[x] - br); t = abs(py[x] - bt); b = abs(pxpy[x] - bb); How can I felt smooth while typing these codes? Everyone will punch me!!!