結果

問題 No.400 鏡
ユーザー komkomhkomkomh
提出日時 2019-06-18 15:28:48
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 328 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 10,711 ms
コンパイル使用メモリ 427,772 KB
実行使用メモリ 56,896 KB
最終ジャッジ日時 2024-04-30 21:03:04
合計ジャッジ時間 15,731 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 313 ms
56,856 KB
testcase_01 AC 316 ms
56,844 KB
testcase_02 AC 328 ms
56,824 KB
testcase_03 AC 324 ms
56,692 KB
testcase_04 AC 328 ms
56,820 KB
testcase_05 AC 312 ms
56,896 KB
testcase_06 AC 328 ms
56,736 KB
testcase_07 AC 324 ms
56,848 KB
testcase_08 AC 324 ms
56,700 KB
testcase_09 AC 323 ms
56,860 KB
testcase_10 AC 320 ms
56,824 KB
testcase_11 AC 322 ms
56,672 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

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

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