time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Capitalization is writing a word with its first letter as a capital letter. Your task is to capitalize the given word.
Note, that during capitalization all the letters except the first one remains unchanged.
Input
A single line contains a non-empty word. This word consists of lowercase and uppercase English letters. The length of the word will not exceed 103.
Output
Output the given word after capitalization.
Sample test(s)
Input
ApPLe
Output
ApPLe
Input
konjac
Output
Konjac 超级水: 代码:#include <iostream> #include<memory.h> using namespace std; int main() { char s[1001]; while(cin>>s) { if(s[0]>='a'&&s[0]<='z') { s[0]-=32; } cout<<s<<endl; memset(s,'\0',sizeof(s)); } return 0; }