結果

問題 No.163 cAPSlOCK
ユーザー javyjavy
提出日時 2015-11-02 22:22:13
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 307 ms / 5,000 ms
コード長 235 bytes
コンパイル時間 13,669 ms
コンパイル使用メモリ 418,812 KB
実行使用メモリ 54,608 KB
最終ジャッジ日時 2023-08-12 13:11:40
合計ジャッジ時間 22,634 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
52,868 KB
testcase_01 AC 287 ms
52,560 KB
testcase_02 AC 288 ms
54,576 KB
testcase_03 AC 294 ms
52,576 KB
testcase_04 AC 296 ms
52,736 KB
testcase_05 AC 293 ms
52,496 KB
testcase_06 AC 294 ms
52,820 KB
testcase_07 AC 295 ms
52,728 KB
testcase_08 AC 298 ms
52,628 KB
testcase_09 AC 294 ms
52,924 KB
testcase_10 AC 287 ms
52,636 KB
testcase_11 AC 288 ms
52,584 KB
testcase_12 AC 290 ms
52,884 KB
testcase_13 AC 307 ms
52,592 KB
testcase_14 AC 295 ms
52,820 KB
testcase_15 AC 296 ms
52,804 KB
testcase_16 AC 294 ms
52,788 KB
testcase_17 AC 295 ms
52,704 KB
testcase_18 AC 288 ms
52,628 KB
testcase_19 AC 292 ms
52,560 KB
testcase_20 AC 286 ms
54,608 KB
testcase_21 AC 289 ms
52,564 KB
testcase_22 AC 295 ms
52,516 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val list = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
    val str = readLine() as String

    for (ch in str) {
        print(list[(list.indexOf(ch) + 52 + 26)%52])
    }
    println()
}
0