Submission #187304
Source Code Expand
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { private static final String TAG = Main.class.getSimpleName(); public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); for(String line = null; (line = br.readLine()) != null;) { if (!line.isEmpty()) { if (line.length() > 1) { System.out.println(line.substring(0, 1).toUpperCase()+line.substring(1, line.length()).toLowerCase()); } else { System.out.println(line.toUpperCase()); } } break; } } }
Submission Info
Submission Time | |
---|---|
Task | B - 名前の確認 |
User | jkojm23 |
Language | Java (OpenJDK 1.7.0) |
Score | 100 |
Code Size | 753 Byte |
Status | AC |
Exec Time | 332 ms |
Memory | 19844 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 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 | AC | 320 ms | 19748 KB |
sample_02.txt | AC | 325 ms | 19716 KB |
test_AzielehadfJD.txt | AC | 331 ms | 19740 KB |
test_Oq.txt | AC | 332 ms | 19844 KB |
test_P.txt | AC | 323 ms | 19752 KB |
test_Wi.txt | AC | 329 ms | 19740 KB |
test_ZNEFzealEAkD.txt | AC | 323 ms | 19748 KB |
test_aAZaz.txt | AC | 325 ms | 19740 KB |
test_z.txt | AC | 325 ms | 19752 KB |
test_zDkElDjNVmAq.txt | AC | 327 ms | 19844 KB |