結果

問題 No.56 消費税
ユーザー kimnykimny
提出日時 2017-11-16 13:48:16
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 524 bytes
コンパイル時間 2,606 ms
コンパイル使用メモリ 101,712 KB
実行使用メモリ 22,856 KB
最終ジャッジ日時 2023-08-16 16:50:27
合計ジャッジ時間 5,156 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
22,764 KB
testcase_01 AC 49 ms
22,856 KB
testcase_02 AC 48 ms
20,728 KB
testcase_03 AC 49 ms
20,648 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 51 ms
20,756 KB
testcase_08 AC 52 ms
20,780 KB
testcase_09 AC 48 ms
22,704 KB
testcase_10 AC 49 ms
18,776 KB
testcase_11 AC 49 ms
22,788 KB
testcase_12 AC 49 ms
20,860 KB
testcase_13 AC 47 ms
22,756 KB
testcase_14 AC 47 ms
20,732 KB
testcase_15 AC 48 ms
22,784 KB
testcase_16 AC 48 ms
22,720 KB
testcase_17 WA -
testcase_18 AC 49 ms
20,740 KB
testcase_19 AC 49 ms
20,808 KB
testcase_20 AC 48 ms
20,736 KB
testcase_21 WA -
testcase_22 AC 49 ms
20,772 KB
testcase_23 AC 50 ms
20,652 KB
testcase_24 AC 48 ms
22,740 KB
testcase_25 AC 48 ms
22,796 KB
testcase_26 AC 50 ms
20,676 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 p = 1 + (float)P / 100;
            float C = (float)D * p;
            int c = (int)C;
            Console.WriteLine(c);
            Console.ReadLine();
        }
    }
}
0