結果

問題 No.400 鏡
ユーザー tanson
提出日時 2025-09-29 03:34:52
言語 Standard ML
(MLton 20210117)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 536 bytes
コンパイル時間 3,342 ms
コンパイル使用メモリ 689,788 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-29 03:34:57
合計ジャッジ時間 4,473 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

fun readStr () =
    let
        fun scan reader stream = SOME (StringCvt.splitl (not o Char.isSpace) reader (StringCvt.skipWS reader stream))
    in
        valOf (TextIO.scanStream scan TextIO.stdIn)
    end


val () =
    let
        val s = readStr ()
        val ans =
            String.implode
                (List.map
                     (fn ch =>
                         if ch = #"<" then #">"
                         else #"<")
                     (List.rev (String.explode s)))
    in
        print (ans ^ "\n")
    end
0