結果
問題 | No.163 cAPSlOCK |
ユーザー |
![]() |
提出日時 | 2015-12-13 02:45:29 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 59 ms / 5,000 ms |
コード長 | 559 bytes |
コンパイル時間 | 2,334 ms |
コンパイル使用メモリ | 74,488 KB |
実行使用メモリ | 37,448 KB |
最終ジャッジ日時 | 2024-09-15 11:00:21 |
合計ジャッジ時間 | 4,602 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); try { String line = read.readLine(); String ans = ""; for (int i = 0; i < line.length(); ++i) { if (line.charAt(i) <= 0x5A) { ans += (line.charAt(i) + "").toLowerCase(); } else { ans += (line.charAt(i) + "").toUpperCase(); } } System.out.println(ans); } catch (Exception e) { e.printStackTrace(); } } }