結果

問題 No.379 五円硬貨
ユーザー 👑 yumechiyumechi
提出日時 2016-08-06 01:17:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 1,000 ms
コード長 211 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 80,384 KB
最終ジャッジ日時 2024-04-24 17:02:06
合計ジャッジ時間 3,247 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
80,000 KB
testcase_01 AC 119 ms
80,000 KB
testcase_02 AC 114 ms
80,128 KB
testcase_03 AC 117 ms
80,000 KB
testcase_04 AC 112 ms
80,128 KB
testcase_05 AC 116 ms
80,256 KB
testcase_06 AC 118 ms
79,744 KB
testcase_07 AC 113 ms
80,256 KB
testcase_08 AC 115 ms
79,872 KB
testcase_09 AC 113 ms
80,128 KB
testcase_10 AC 114 ms
80,128 KB
testcase_11 AC 115 ms
80,256 KB
testcase_12 AC 114 ms
80,000 KB
testcase_13 AC 119 ms
80,384 KB
testcase_14 AC 117 ms
80,000 KB
testcase_15 AC 113 ms
80,128 KB
testcase_16 AC 115 ms
79,744 KB
testcase_17 AC 113 ms
79,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *

def solve():
    getcontext().prec = 50
    n, g, v = [int(i) for i in input().split()]
    print(Decimal((n - n % 5) // 5) * Decimal(g) / Decimal(v))

if __name__=="__main__":
    solve()
0