結果

問題 No.163 cAPSlOCK
ユーザー samplelpmassamplelpmas
提出日時 2016-11-11 02:24:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 113 ms / 5,000 ms
コード長 351 bytes
コンパイル時間 2,109 ms
コンパイル使用メモリ 78,496 KB
実行使用メモリ 54,228 KB
最終ジャッジ日時 2024-05-04 01:46:31
合計ジャッジ時間 4,941 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
52,920 KB
testcase_01 AC 104 ms
53,796 KB
testcase_02 AC 106 ms
53,996 KB
testcase_03 AC 102 ms
53,604 KB
testcase_04 AC 96 ms
52,952 KB
testcase_05 AC 110 ms
54,228 KB
testcase_06 AC 102 ms
53,996 KB
testcase_07 AC 93 ms
52,864 KB
testcase_08 AC 93 ms
52,784 KB
testcase_09 AC 108 ms
53,980 KB
testcase_10 AC 107 ms
53,968 KB
testcase_11 AC 106 ms
53,812 KB
testcase_12 AC 112 ms
54,028 KB
testcase_13 AC 97 ms
52,920 KB
testcase_14 AC 113 ms
54,084 KB
testcase_15 AC 105 ms
54,040 KB
testcase_16 AC 108 ms
54,060 KB
testcase_17 AC 96 ms
52,752 KB
testcase_18 AC 100 ms
52,764 KB
testcase_19 AC 109 ms
54,068 KB
testcase_20 AC 95 ms
52,948 KB
testcase_21 AC 98 ms
52,676 KB
testcase_22 AC 101 ms
52,676 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