結果

問題 No.56 消費税
ユーザー _mi_lin_
提出日時 2019-04-05 10:48:48
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 571 bytes
コンパイル時間 912 ms
コンパイル使用メモリ 115,028 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2025-01-02 19:49:48
合計ジャッジ時間 2,511 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
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