結果
問題 | No.392 2分木をたどれ |
ユーザー | Leonardone |
提出日時 | 2019-09-04 04:48:03 |
言語 | Haskell (9.8.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 386 bytes |
コンパイル時間 | 945 ms |
コンパイル使用メモリ | 156,116 KB |
実行使用メモリ | 11,324 KB |
最終ジャッジ日時 | 2023-08-26 20:51:33 |
合計ジャッジ時間 | 1,705 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
--リジャッジで落ちたコードのputStrLnをputStrに変更 -- 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