結果

問題 No.56 消費税
ユーザー mrc1031mrc1031
提出日時 2016-10-11 10:44:56
言語 C#(csc)
(csc 3.9.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 322 bytes
コンパイル時間 1,978 ms
コンパイル使用メモリ 101,512 KB
実行使用メモリ 24,708 KB
最終ジャッジ日時 2023-09-25 03:42:09
合計ジャッジ時間 4,853 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
24,708 KB
testcase_01 AC 64 ms
22,656 KB
testcase_02 AC 65 ms
24,636 KB
testcase_03 AC 64 ms
22,828 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 65 ms
24,560 KB
testcase_09 AC 65 ms
22,528 KB
testcase_10 AC 64 ms
22,768 KB
testcase_11 AC 63 ms
22,576 KB
testcase_12 AC 63 ms
22,792 KB
testcase_13 AC 62 ms
22,580 KB
testcase_14 AC 63 ms
22,564 KB
testcase_15 AC 63 ms
22,596 KB
testcase_16 AC 63 ms
22,892 KB
testcase_17 AC 64 ms
24,576 KB
testcase_18 AC 63 ms
22,596 KB
testcase_19 AC 64 ms
22,748 KB
testcase_20 AC 64 ms
22,580 KB
testcase_21 AC 65 ms
22,620 KB
testcase_22 AC 64 ms
24,580 KB
testcase_23 AC 64 ms
24,632 KB
testcase_24 AC 63 ms
22,588 KB
testcase_25 AC 63 ms
20,564 KB
testcase_26 AC 64 ms
22,704 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)
    {
        // No.56 消費税

        string dp = Console.ReadLine();
        float D = float.Parse(dp.Split(' ')[0]);
        float P = float.Parse(dp.Split(' ')[1]);

        Console.WriteLine(Math.Floor(D + D * P / 100));
    }
}
0