OJ-Problems-Source/HDOJ/1161_autoAC.cpp

17 lines
294 B
C++
Raw Normal View History

2016-08-13 10:51:15 +08:00
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main()
{
int i,len;
char s[1000];
while(gets(s))
{
len = strlen(s);
for(i=0;i<len;i++)
if(isupper(s[i]))s[i]=tolower(s[i]);
printf("%s\n",s);
}
return 0;
}