結果

問題 No.56 消費税
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 15:17:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 71 ms / 5,000 ms
コード長 350 bytes
コンパイル時間 2,537 ms
コンパイル使用メモリ 105,944 KB
実行使用メモリ 24,072 KB
最終ジャッジ日時 2023-09-25 12:22:20
合計ジャッジ時間 5,634 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
24,072 KB
testcase_01 AC 69 ms
24,036 KB
testcase_02 AC 69 ms
20,020 KB
testcase_03 AC 69 ms
21,936 KB
testcase_04 AC 71 ms
24,000 KB
testcase_05 AC 70 ms
22,016 KB
testcase_06 AC 68 ms
21,888 KB
testcase_07 AC 69 ms
21,992 KB
testcase_08 AC 69 ms
23,960 KB
testcase_09 AC 68 ms
21,984 KB
testcase_10 AC 68 ms
21,968 KB
testcase_11 AC 68 ms
22,016 KB
testcase_12 AC 68 ms
22,060 KB
testcase_13 AC 69 ms
23,960 KB
testcase_14 AC 68 ms
21,928 KB
testcase_15 AC 68 ms
21,908 KB
testcase_16 AC 68 ms
23,972 KB
testcase_17 AC 69 ms
19,912 KB
testcase_18 AC 68 ms
21,888 KB
testcase_19 AC 68 ms
22,076 KB
testcase_20 AC 69 ms
23,968 KB
testcase_21 AC 68 ms
23,956 KB
testcase_22 AC 69 ms
23,976 KB
testcase_23 AC 69 ms
22,080 KB
testcase_24 AC 70 ms
21,980 KB
testcase_25 AC 68 ms
22,116 KB
testcase_26 AC 69 ms
22,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    public void Solve()
    {
        long[] DP = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();
        Console.WriteLine(Math.Truncate(DP[0] * (1 + (decimal)DP[1] / 100)));
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0