結果

問題 No.56 消費税
ユーザー _mi_lin__mi_lin_
提出日時 2019-04-05 10:48:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 5,000 ms
コード長 571 bytes
コンパイル時間 1,941 ms
コンパイル使用メモリ 101,484 KB
実行使用メモリ 24,948 KB
最終ジャッジ日時 2023-08-30 22:04:01
合計ジャッジ時間 5,197 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
22,688 KB
testcase_01 AC 65 ms
20,712 KB
testcase_02 AC 66 ms
22,584 KB
testcase_03 AC 66 ms
22,680 KB
testcase_04 AC 66 ms
24,948 KB
testcase_05 AC 66 ms
22,900 KB
testcase_06 AC 65 ms
20,656 KB
testcase_07 AC 66 ms
22,700 KB
testcase_08 AC 66 ms
20,744 KB
testcase_09 AC 66 ms
24,772 KB
testcase_10 AC 65 ms
22,764 KB
testcase_11 AC 66 ms
24,824 KB
testcase_12 AC 66 ms
22,664 KB
testcase_13 AC 66 ms
22,632 KB
testcase_14 AC 66 ms
24,620 KB
testcase_15 AC 66 ms
22,780 KB
testcase_16 AC 66 ms
20,852 KB
testcase_17 AC 66 ms
22,840 KB
testcase_18 AC 66 ms
22,644 KB
testcase_19 AC 66 ms
22,876 KB
testcase_20 AC 66 ms
22,764 KB
testcase_21 AC 66 ms
22,708 KB
testcase_22 AC 65 ms
22,620 KB
testcase_23 AC 65 ms
22,712 KB
testcase_24 AC 65 ms
22,716 KB
testcase_25 AC 65 ms
22,936 KB
testcase_26 AC 65 ms
20,664 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace No56tax
{
    class Program
    {
        static void Main(string[] args)
        {
            //値の入力
            string[] value = Console.ReadLine().Split(' ');

            int price = int.Parse(value[0]);
            double tax = double.Parse(value[1]);

            //消費税の計算
            double ans = price + (price * (tax / 100));

            //表示
            Console.WriteLine(Math.Floor(ans));

        }
    }
}
0