結果
問題 |
No.379 五円硬貨
|
ユーザー |
|
提出日時 | 2016-06-25 16:12:32 |
言語 | Haskell (9.10.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 370 bytes |
コンパイル時間 | 9,593 ms |
コンパイル使用メモリ | 172,416 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 21:51:29 |
合計ジャッジ時間 | 6,219 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 14 WA * 2 |
コンパイルメッセージ
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
ソースコード
-- yukicoder My Practice -- author: Leonardone @ NEETSDKASU main = putStrLn . solve . map read . words =<< getLine solve [n, g, v] = ans where gareki_count = n `div` 5 gareki_weight = g * gareki_count gareki_by_room = gareki_weight * (10 ^ 12) `div` v (upper, under) = divMod gareki_by_room (10 ^ 12) ans = show upper ++ "." ++ show under