結果
| 問題 | No.379 五円硬貨 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-25 16:12:32 |
| 言語 | Haskell (9.14.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 370 bytes |
| 記録 | |
| コンパイル時間 | 1,398 ms |
| コンパイル使用メモリ | 199,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-09-14 06:39:47 |
| 合計ジャッジ時間 | 3,123 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 14 WA * 2 |
コンパイルメッセージ
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
ソースコード
-- 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