結果
問題 | No.392 2分木をたどれ |
ユーザー |
![]() |
提出日時 | 2017-06-20 16:31:03 |
言語 | Haskell (9.2.2) |
結果 |
AC
|
実行時間 | 16 ms / 2,000 ms |
コード長 | 188 bytes |
コンパイル時間 | 2,344 ms |
使用メモリ | 8,416 KB |
最終ジャッジ日時 | 2022-11-26 00:02:14 |
合計ジャッジ時間 | 2,177 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,232 KB |
testcase_01 | AC | 16 ms
8,256 KB |
testcase_02 | AC | 16 ms
8,416 KB |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.2.2/environments/default [1 of 1] Compiling Main ( Main.hs, Main.o ) Linking a.out ...
ソースコード
import Text.Printf main = getLine >> interact (unlines . map (btree . read) . lines) btree :: Int -> String btree = tail . map (\c -> case c of {'0'->'L'; '1'->'R'}) . printf "%b" . succ