結果

問題 No.163 cAPSlOCK
ユーザー samplelpmassamplelpmas
提出日時 2016-11-11 02:24:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 2,849 ms
コンパイル使用メモリ 71,388 KB
実行使用メモリ 56,172 KB
最終ジャッジ日時 2023-08-16 18:05:31
合計ジャッジ時間 6,000 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,536 KB
testcase_01 AC 120 ms
55,832 KB
testcase_02 AC 116 ms
55,428 KB
testcase_03 AC 116 ms
55,720 KB
testcase_04 AC 115 ms
56,100 KB
testcase_05 AC 116 ms
55,668 KB
testcase_06 AC 118 ms
55,640 KB
testcase_07 AC 115 ms
55,464 KB
testcase_08 AC 116 ms
55,756 KB
testcase_09 AC 117 ms
55,676 KB
testcase_10 AC 117 ms
55,696 KB
testcase_11 AC 117 ms
55,728 KB
testcase_12 AC 118 ms
55,640 KB
testcase_13 AC 120 ms
55,664 KB
testcase_14 AC 119 ms
55,588 KB
testcase_15 AC 119 ms
55,756 KB
testcase_16 AC 119 ms
53,692 KB
testcase_17 AC 118 ms
55,892 KB
testcase_18 AC 117 ms
56,028 KB
testcase_19 AC 116 ms
55,384 KB
testcase_20 AC 121 ms
55,480 KB
testcase_21 AC 120 ms
55,672 KB
testcase_22 AC 118 ms
56,172 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);

        char[] string = sc.next().toCharArray();

        for (int i = 0; i < string.length; i++) {
            string[i] ^= ('a' - 'A');
        }

        System.out.println(String.valueOf(string));

    }

}
0