結果
問題 |
No.379 五円硬貨
|
ユーザー |
|
提出日時 | 2019-04-29 16:12:03 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 24 ms / 1,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 2,043 ms |
コンパイル使用メモリ | 103,552 KB |
実行使用メモリ | 18,304 KB |
最終ジャッジ日時 | 2024-12-24 14:08:16 |
合計ジャッジ時間 | 3,353 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace No379 { class Program { static void Main(string[] args) { decimal[] ary = Array.ConvertAll(Console.ReadLine().Split(' '), decimal.Parse); decimal N, G, V; N = ary[0]; G = ary[1]; V = ary[2]; decimal count = Math.Floor(N / 5); decimal mg = count * G; Console.WriteLine(mg / V); } } }