結果

問題 No.56 消費税
ユーザー kimnykimny
提出日時 2017-11-16 13:57:41
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 536 bytes
コンパイル時間 1,768 ms
コンパイル使用メモリ 102,676 KB
実行使用メモリ 24,952 KB
最終ジャッジ日時 2023-08-16 16:50:41
合計ジャッジ時間 4,236 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,856 KB
testcase_01 AC 61 ms
22,772 KB
testcase_02 AC 57 ms
24,952 KB
testcase_03 AC 55 ms
22,776 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 52 ms
24,824 KB
testcase_08 AC 54 ms
22,872 KB
testcase_09 AC 53 ms
22,788 KB
testcase_10 AC 53 ms
22,832 KB
testcase_11 AC 52 ms
22,928 KB
testcase_12 AC 52 ms
22,760 KB
testcase_13 AC 53 ms
22,828 KB
testcase_14 AC 53 ms
22,784 KB
testcase_15 AC 52 ms
24,784 KB
testcase_16 AC 51 ms
22,764 KB
testcase_17 WA -
testcase_18 AC 52 ms
22,932 KB
testcase_19 AC 53 ms
22,876 KB
testcase_20 AC 52 ms
22,704 KB
testcase_21 WA -
testcase_22 AC 53 ms
22,816 KB
testcase_23 AC 53 ms
24,788 KB
testcase_24 AC 53 ms
22,764 KB
testcase_25 AC 53 ms
22,740 KB
testcase_26 AC 55 ms
22,808 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 yukicoder_56 {
    class Program {
        static void Main(string[] args) {
            string[] s = Console.ReadLine().Split(' ');
            int D = int.Parse(s[0]);
            int P = int.Parse(s[1]);
            float tax = 1 + (float)P / 100;
            float C = D * tax;
            double cost = Math.Floor(C);
            Console.WriteLine(cost);
            Console.ReadLine();
        }
    }
}
0