結果
問題 |
No.428 小数から逃げる夢
|
ユーザー |
![]() |
提出日時 | 2017-04-25 15:55:55 |
言語 | Haskell (9.10.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 1,777 ms |
コンパイル使用メモリ | 170,368 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 08:47:43 |
合計ジャッジ時間 | 4,622 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 100 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.8.2/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
d = 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991 main = readLn >>= putStrLn . dream dream n | n <= 8 = "0." ++ show (n*d) | n <= 81 = (\(d1:ds) -> d1:'.':ds) (show (n*d)) | otherwise = (\(d1:d2:ds) -> d1:d2:'.':ds) (show (n*d))