結果
| 問題 |
No.163 cAPSlOCK
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-06-30 19:13:39 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 109 ms / 5,000 ms |
| コード長 | 542 bytes |
| コンパイル時間 | 2,820 ms |
| コンパイル使用メモリ | 74,592 KB |
| 実行使用メモリ | 41,716 KB |
| 最終ジャッジ日時 | 2024-07-07 21:29:19 |
| 合計ジャッジ時間 | 6,218 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
import java.util.Scanner;
public class Main_yukicoder163 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char[] passwd = sc.next().toCharArray();
for (int i = 0; i < passwd.length; i++) {
if (passwd[i] >= 'A' && passwd[i] <= 'Z') {
System.out.print((char)(passwd[i] - 'A' + 'a'));
} else {
System.out.print((char)(passwd[i] - 'a' + 'A'));
}
}
System.out.println("");
sc.close();
}
}