結果

問題 No.56 消費税
ユーザー funakoshifunakoshi
提出日時 2019-06-21 15:20:27
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 544 bytes
コンパイル時間 3,299 ms
コンパイル使用メモリ 107,076 KB
実行使用メモリ 24,820 KB
最終ジャッジ日時 2023-08-26 08:39:55
合計ジャッジ時間 7,307 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,868 KB
testcase_01 AC 55 ms
22,600 KB
testcase_02 AC 57 ms
24,640 KB
testcase_03 AC 54 ms
22,716 KB
testcase_04 AC 55 ms
22,856 KB
testcase_05 AC 54 ms
24,820 KB
testcase_06 AC 56 ms
22,568 KB
testcase_07 AC 63 ms
22,732 KB
testcase_08 AC 64 ms
24,672 KB
testcase_09 AC 63 ms
22,836 KB
testcase_10 WA -
testcase_11 AC 63 ms
22,664 KB
testcase_12 AC 64 ms
24,612 KB
testcase_13 AC 62 ms
22,640 KB
testcase_14 AC 62 ms
20,644 KB
testcase_15 AC 63 ms
24,712 KB
testcase_16 AC 62 ms
22,652 KB
testcase_17 AC 63 ms
22,724 KB
testcase_18 AC 63 ms
22,712 KB
testcase_19 AC 62 ms
22,724 KB
testcase_20 AC 62 ms
20,592 KB
testcase_21 AC 63 ms
24,796 KB
testcase_22 AC 63 ms
22,700 KB
testcase_23 AC 63 ms
24,716 KB
testcase_24 AC 63 ms
22,816 KB
testcase_25 AC 63 ms
22,640 KB
testcase_26 AC 63 ms
22,628 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 yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] pt = input.Split(' ');
            int price = int.Parse(pt[0]);
            double taxp = int.Parse(pt[1]);
            double tax = price * (taxp / 100);
            double inctax = price + (int)tax;
            Console.WriteLine(inctax);
        }
    }
}
0