結果

問題 No.163 cAPSlOCK
ユーザー javyjavy
提出日時 2015-11-02 22:22:13
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 325 ms / 5,000 ms
コード長 235 bytes
コンパイル時間 11,530 ms
コンパイル使用メモリ 432,044 KB
実行使用メモリ 51,028 KB
最終ジャッジ日時 2024-04-30 03:02:13
合計ジャッジ時間 20,011 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 325 ms
50,744 KB
testcase_01 AC 310 ms
50,792 KB
testcase_02 AC 313 ms
50,940 KB
testcase_03 AC 322 ms
50,756 KB
testcase_04 AC 318 ms
50,912 KB
testcase_05 AC 318 ms
50,744 KB
testcase_06 AC 311 ms
50,728 KB
testcase_07 AC 311 ms
51,028 KB
testcase_08 AC 321 ms
50,824 KB
testcase_09 AC 319 ms
50,880 KB
testcase_10 AC 323 ms
50,828 KB
testcase_11 AC 315 ms
50,724 KB
testcase_12 AC 317 ms
50,984 KB
testcase_13 AC 318 ms
50,996 KB
testcase_14 AC 321 ms
50,724 KB
testcase_15 AC 319 ms
51,016 KB
testcase_16 AC 314 ms
50,764 KB
testcase_17 AC 311 ms
50,836 KB
testcase_18 AC 311 ms
50,732 KB
testcase_19 AC 316 ms
50,976 KB
testcase_20 AC 309 ms
50,780 KB
testcase_21 AC 314 ms
50,612 KB
testcase_22 AC 318 ms
51,008 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