結果
問題 | No.392 2分木をたどれ |
ユーザー |
|
提出日時 | 2016-07-12 04:15:27 |
言語 | Haskell (9.2.2) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 1,836 ms |
使用メモリ | 8,616 KB |
最終ジャッジ日時 | 2022-12-08 16:48:04 |
合計ジャッジ時間 | 2,640 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge16 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
コンパイルメッセージ
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 ...
ソースコード
-- Try yukicoder -- author: Leonardone @ NEETSDKASU main = putStrLn . unlines . solve . map read . tail . lines =<< getContents solve x = map (foo "") x where foo s 0 = s foo s x | z == 0 = foo ('R' : s) (y - 1) | otherwise = foo ('L' : s) y where (y, z) = divMod x 2