코드포스 281A (codeforces 281A)

코드포스 281A (codeforces 281A) 문제 풀이 및 코드 (description and code)

Problem - 281A - Codeforces

코드

import java.io.*;

public class CF281A {
    static String in;
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
        in = br.readLine();
        StringBuffer sb = new StringBuffer();
        if (in.charAt(0) > 96) sb.append((char)(in.charAt(0) - 32));
        else sb.append(in.charAt(0));
        sb.append(in.substring(1, in.length()));
        bw.write(sb.toString() + "\n");bw.flush();
        bw.close();
    }
}

설명