結果

問題 No.400 鏡
ユーザー Pump0129
提出日時 2018-03-30 03:40:51
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 354 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 11,764 ms
コンパイル使用メモリ 429,372 KB
実行使用メモリ 60,788 KB
最終ジャッジ日時 2024-11-20 15:12:15
合計ジャッジ時間 14,500 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
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