結果

問題 No.379 五円硬貨
ユーザー CroweaCrowea
提出日時 2019-04-29 16:12:03
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 441 bytes
コンパイル時間 3,323 ms
コンパイル使用メモリ 103,284 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-08-26 01:25:26
合計ジャッジ時間 5,986 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
22,892 KB
testcase_01 AC 65 ms
20,876 KB
testcase_02 AC 64 ms
20,820 KB
testcase_03 AC 64 ms
20,852 KB
testcase_04 AC 63 ms
20,780 KB
testcase_05 AC 63 ms
22,896 KB
testcase_06 AC 64 ms
22,840 KB
testcase_07 AC 64 ms
20,708 KB
testcase_08 AC 64 ms
18,964 KB
testcase_09 AC 64 ms
20,792 KB
testcase_10 AC 65 ms
20,928 KB
testcase_11 AC 64 ms
22,896 KB
testcase_12 AC 64 ms
22,880 KB
testcase_13 AC 63 ms
20,888 KB
testcase_14 AC 64 ms
21,012 KB
testcase_15 AC 65 ms
20,912 KB
testcase_16 AC 63 ms
20,844 KB
testcase_17 AC 64 ms
21,016 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
        }
    }
}
0