結果

問題 No.163 cAPSlOCK
ユーザー ぴろずぴろず
提出日時 2015-03-12 23:22:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 281 bytes
コンパイル時間 3,629 ms
コンパイル使用メモリ 71,568 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-09-07 01:23:41
合計ジャッジ時間 6,491 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,820 KB
testcase_01 AC 116 ms
55,780 KB
testcase_02 AC 119 ms
56,028 KB
testcase_03 AC 118 ms
55,976 KB
testcase_04 AC 116 ms
55,760 KB
testcase_05 AC 116 ms
55,764 KB
testcase_06 AC 118 ms
55,892 KB
testcase_07 AC 115 ms
55,948 KB
testcase_08 AC 120 ms
55,832 KB
testcase_09 AC 119 ms
55,724 KB
testcase_10 AC 119 ms
56,184 KB
testcase_11 AC 118 ms
56,100 KB
testcase_12 AC 115 ms
55,928 KB
testcase_13 AC 114 ms
55,840 KB
testcase_14 AC 116 ms
55,432 KB
testcase_15 AC 116 ms
56,088 KB
testcase_16 AC 116 ms
56,096 KB
testcase_17 AC 117 ms
55,904 KB
testcase_18 AC 120 ms
55,712 KB
testcase_19 AC 116 ms
55,692 KB
testcase_20 AC 117 ms
56,132 KB
testcase_21 AC 117 ms
55,720 KB
testcase_22 AC 117 ms
55,572 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no163;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		for(int i=0;i<s.length;i++) {
			s[i] ^= 0x20;
		}
		System.out.println(String.valueOf(s));
	}
}
0