結果

問題 No.163 cAPSlOCK
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-05 08:19:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 441 bytes
コンパイル時間 3,302 ms
コンパイル使用メモリ 73,504 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2023-09-20 10:30:48
合計ジャッジ時間 7,491 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,476 KB
testcase_01 AC 117 ms
55,788 KB
testcase_02 AC 118 ms
56,008 KB
testcase_03 AC 127 ms
55,864 KB
testcase_04 AC 126 ms
55,468 KB
testcase_05 AC 122 ms
55,540 KB
testcase_06 AC 121 ms
55,964 KB
testcase_07 AC 127 ms
55,684 KB
testcase_08 AC 127 ms
56,016 KB
testcase_09 AC 125 ms
55,880 KB
testcase_10 AC 123 ms
55,848 KB
testcase_11 AC 122 ms
55,652 KB
testcase_12 AC 121 ms
55,924 KB
testcase_13 AC 123 ms
56,196 KB
testcase_14 AC 123 ms
55,856 KB
testcase_15 AC 124 ms
55,724 KB
testcase_16 AC 126 ms
55,708 KB
testcase_17 AC 123 ms
55,792 KB
testcase_18 AC 120 ms
53,964 KB
testcase_19 AC 118 ms
55,824 KB
testcase_20 AC 119 ms
56,040 KB
testcase_21 AC 119 ms
56,020 KB
testcase_22 AC 126 ms
55,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No163 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		String passward = sc.next();
		
		for(int i = 0;i < passward.length();i++) {
			if(Character.isUpperCase(passward.charAt(i))) {
				System.out.print(Character.toLowerCase(passward.charAt(i)));
			}else {
				System.out.print(Character.toUpperCase(passward.charAt(i)));
			}
		}
		System.out.println();
	}
}
0