結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
kenkoooo
|
| 提出日時 | 2015-03-12 23:34:04 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 5,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 2,083 ms |
| コンパイル使用メモリ | 74,456 KB |
| 実行使用メモリ | 41,416 KB |
| 最終ジャッジ日時 | 2024-06-24 20:38:27 |
| 合計ジャッジ時間 | 6,034 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char[] input = sc.next().toCharArray();
sc.close();
for (int i = 0; i < input.length; i++) {
if (Character.isUpperCase(input[i])) {
System.out.print(Character.toLowerCase(input[i]));
} else {
System.out.print(Character.toUpperCase(input[i]));
}
}
System.out.println();
}
}
kenkoooo