結果
| 問題 | No.219 巨大数の概算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-04-17 20:52:37 |
| 言語 | Haskell (9.14.1) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 1,500 ms |
| + 222µs | |
| コード長 | 248 bytes |
| 記録 | |
| コンパイル時間 | 7,430 ms |
| コンパイル使用メモリ | 192,000 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-08-17 02:21:37 |
| 合計ジャッジ時間 | 10,855 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 51 |
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.14.1/environments/default [1 of 2] Compiling Main ( Main.hs, Main.o ) [2 of 2] Linking a.out
ソースコード
main = getLine >> getContents >>= mapM_ putStrLn . map ((\(a:b:_) -> let t = b * logBase 10 a; z = floor t; w = 10 ** (t - (fromIntegral z)); x = floor w; y = floor (10 * w) `mod` 10 in (unwords . map show) [x, y, z] ) . (map read . words)) . lines