結果

問題 No.56 消費税
ユーザー kmtrc130kmtrc130
提出日時 2017-04-25 17:13:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 268 bytes
コンパイル時間 2,430 ms
コンパイル使用メモリ 105,092 KB
実行使用メモリ 26,004 KB
最終ジャッジ日時 2023-10-11 09:43:55
合計ジャッジ時間 6,117 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
21,960 KB
testcase_01 AC 69 ms
24,068 KB
testcase_02 AC 70 ms
22,040 KB
testcase_03 AC 69 ms
21,912 KB
testcase_04 AC 69 ms
22,016 KB
testcase_05 AC 69 ms
22,028 KB
testcase_06 AC 68 ms
24,024 KB
testcase_07 AC 67 ms
22,168 KB
testcase_08 AC 69 ms
22,068 KB
testcase_09 AC 68 ms
23,956 KB
testcase_10 AC 68 ms
21,944 KB
testcase_11 AC 67 ms
22,076 KB
testcase_12 AC 68 ms
24,152 KB
testcase_13 AC 67 ms
24,076 KB
testcase_14 AC 67 ms
21,852 KB
testcase_15 AC 68 ms
24,080 KB
testcase_16 AC 67 ms
22,024 KB
testcase_17 AC 69 ms
24,092 KB
testcase_18 AC 68 ms
22,084 KB
testcase_19 AC 68 ms
24,132 KB
testcase_20 AC 67 ms
22,168 KB
testcase_21 AC 67 ms
21,912 KB
testcase_22 AC 67 ms
26,004 KB
testcase_23 AC 69 ms
20,052 KB
testcase_24 AC 68 ms
23,964 KB
testcase_25 AC 67 ms
24,024 KB
testcase_26 AC 68 ms
22,060 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
{
    static void Main(string[] args)
    {

        long[] DP = Console.ReadLine().Split(' ').Select(s => long.Parse(s)).ToArray();

        Console.WriteLine(Math.Truncate(DP[0] * (1 + (decimal)DP[1] / 100)));
    }
}
0