結果

問題 No.18 うーさー暗号
ユーザー minokasagominokasago
提出日時 2019-11-01 15:01:23
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 272 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 11,896 ms
コンパイル使用メモリ 410,952 KB
実行使用メモリ 50,260 KB
最終ジャッジ日時 2023-10-13 00:47:59
合計ジャッジ時間 16,653 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 260 ms
50,052 KB
testcase_01 AC 264 ms
50,160 KB
testcase_02 AC 262 ms
50,056 KB
testcase_03 AC 270 ms
50,060 KB
testcase_04 AC 268 ms
50,100 KB
testcase_05 AC 270 ms
49,972 KB
testcase_06 AC 269 ms
50,104 KB
testcase_07 AC 268 ms
50,124 KB
testcase_08 AC 272 ms
49,964 KB
testcase_09 AC 269 ms
50,132 KB
testcase_10 AC 267 ms
50,156 KB
testcase_11 AC 266 ms
50,084 KB
testcase_12 AC 271 ms
50,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import kotlin.math.*

fun main()
{
    val S = readLine()!!
    val sb = StringBuilder()

    for (i in 1..S.length) {
        sb.append('A' + (((S[i-1] - 'A' - i) % 26) + 26) % 26)
    }

    println(sb)
}

0