結果

問題 No.400 鏡
ユーザー Pump0129Pump0129
提出日時 2018-03-30 03:40:51
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 335 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 9,555 ms
コンパイル使用メモリ 431,296 KB
実行使用メモリ 60,748 KB
最終ジャッジ日時 2024-04-30 17:54:34
合計ジャッジ時間 14,488 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 332 ms
60,748 KB
testcase_01 AC 335 ms
60,484 KB
testcase_02 AC 334 ms
60,600 KB
testcase_03 AC 323 ms
60,664 KB
testcase_04 AC 328 ms
60,508 KB
testcase_05 AC 321 ms
60,720 KB
testcase_06 AC 321 ms
60,600 KB
testcase_07 AC 322 ms
60,480 KB
testcase_08 AC 322 ms
60,468 KB
testcase_09 AC 327 ms
60,472 KB
testcase_10 AC 327 ms
60,440 KB
testcase_11 AC 322 ms
60,588 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

package net.ipipip0129.kotlin.yukicoder

fun main(args: Array<String>) {
    val str = readLine()
    var output = ""

    for (char in str!!.split("")) {
        when (char) {
            ">" -> output = "<" + output
            "<" -> output = ">" + output
        }
    }

    print(output)
}
0