Saturday, June 28, 2014

Codeforces Round #172 (Div. 2), problem: (A) Word Capitalization solution

Codeforces Round #172 (Div. 2), problem: (A) Word Capitalization: http://codeforces.com/problemset/problem/281/A

Codeforces Round #172 (Div. 2), problem: (A) Word Capitalization editorial: http://codeforces.com/blog/entry/6939

Codeforces Round #172 (Div. 2), problem: (A) Word Capitalization solution: http://ideone.com/NHXJWx

#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;

int main() {
    char s[1005];
    gets(s);
    if(s[0]>=97) s[0]=toupper(s[0]);
    puts(s);
    return 0;
}

No comments:

Post a Comment