結果

問題 No.56 消費税
ユーザー funakoshifunakoshi
提出日時 2019-06-21 15:17:30
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 438 bytes
コンパイル時間 4,840 ms
コンパイル使用メモリ 102,656 KB
実行使用メモリ 22,904 KB
最終ジャッジ日時 2023-08-26 08:12:32
合計ジャッジ時間 6,899 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
22,736 KB
testcase_01 AC 52 ms
20,832 KB
testcase_02 AC 53 ms
20,656 KB
testcase_03 AC 54 ms
20,732 KB
testcase_04 AC 53 ms
20,784 KB
testcase_05 AC 52 ms
22,796 KB
testcase_06 AC 50 ms
20,928 KB
testcase_07 AC 51 ms
20,720 KB
testcase_08 AC 52 ms
22,788 KB
testcase_09 AC 52 ms
22,760 KB
testcase_10 WA -
testcase_11 AC 54 ms
22,872 KB
testcase_12 AC 52 ms
20,924 KB
testcase_13 AC 55 ms
20,912 KB
testcase_14 AC 53 ms
20,756 KB
testcase_15 AC 49 ms
20,928 KB
testcase_16 AC 52 ms
18,808 KB
testcase_17 AC 50 ms
22,820 KB
testcase_18 AC 52 ms
20,764 KB
testcase_19 AC 52 ms
20,788 KB
testcase_20 AC 55 ms
18,768 KB
testcase_21 AC 54 ms
22,872 KB
testcase_22 AC 54 ms
22,728 KB
testcase_23 AC 53 ms
20,800 KB
testcase_24 AC 51 ms
22,860 KB
testcase_25 AC 52 ms
20,784 KB
testcase_26 AC 52 ms
20,812 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
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);
            int inctax = price + (int)tax;
            Console.WriteLine(inctax);
        }
    }
}
0