結果

問題 No.400 鏡
ユーザー komkomhkomkomh
提出日時 2019-06-18 15:28:48
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 287 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 10,821 ms
コンパイル使用メモリ 409,300 KB
実行使用メモリ 52,844 KB
最終ジャッジ日時 2023-08-13 02:35:53
合計ジャッジ時間 15,471 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 283 ms
52,796 KB
testcase_01 AC 283 ms
52,760 KB
testcase_02 AC 286 ms
52,620 KB
testcase_03 AC 282 ms
52,840 KB
testcase_04 AC 281 ms
52,500 KB
testcase_05 AC 279 ms
52,656 KB
testcase_06 AC 280 ms
52,828 KB
testcase_07 AC 285 ms
52,636 KB
testcase_08 AC 283 ms
52,620 KB
testcase_09 AC 282 ms
52,844 KB
testcase_10 AC 282 ms
52,836 KB
testcase_11 AC 287 ms
52,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

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

    val ans = S
        .replace('<', '_')
        .replace('>', '<')
        .replace('_', '>')
        .reversed()
    println(ans)
}
0