結果
問題 | No.379 五円硬貨 |
ユーザー |
![]() |
提出日時 | 2016-06-18 11:23:06 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 1,957 ms |
コンパイル使用メモリ | 143,360 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:33:52 |
合計ジャッジ時間 | 2,817 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
import std.stdio, std.conv, std.math, std.string, std.range, std.array,std.algorithm;void main() {auto buf = readln().strip().split().map!(to!ulong)().array();immutable N = buf[0];immutable G = buf[1];immutable V = buf[2];auto grk = N/5*G;write(grk/V);auto a = grk%V*10^^7;writefln(".%07d%07d", a/V, a%V*10^^7/V);}