Submission #191344
Source Code Expand
package hoge.beginner011.whatsName;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 入力値
String input = sc.next();
if (input == null || input.length() == 0) {
return;
}
// 出力値
String output = "";
// 1文字目は大文字
output += input.substring(0, 1).toUpperCase();
// 2文字目以降は小文字
output += input.substring(1, input.length()).toLowerCase();
// 出力
System.out.println(output);
return;
}
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - 名前の確認 |
| User | kakiageudon |
| Language | Java (OpenJDK 1.7.0) |
| Score | 0 |
| Code Size | 557 Byte |
| Status | RE |
| Exec Time | 519 ms |
| Memory | 20776 KiB |
Judge Result
| Set Name | All | ||
|---|---|---|---|
| Score / Max Score | 0 / 100 | ||
| Status |
|
| Set Name | Test Cases |
|---|---|
| All | test_AzielehadfJD.txt, test_Oq.txt, test_P.txt, test_Wi.txt, test_ZNEFzealEAkD.txt, test_aAZaz.txt, test_z.txt, test_zDkElDjNVmAq.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| sample_01.txt | RE | 382 ms | 20632 KiB |
| sample_02.txt | RE | 452 ms | 20648 KiB |
| test_AzielehadfJD.txt | RE | 519 ms | 20644 KiB |
| test_Oq.txt | RE | 482 ms | 20776 KiB |
| test_P.txt | RE | 409 ms | 20640 KiB |
| test_Wi.txt | RE | 455 ms | 20768 KiB |
| test_ZNEFzealEAkD.txt | RE | 420 ms | 20640 KiB |
| test_aAZaz.txt | RE | 394 ms | 20724 KiB |
| test_z.txt | RE | 401 ms | 20724 KiB |
| test_zDkElDjNVmAq.txt | RE | 490 ms | 20648 KiB |