結果

問題 No.56 消費税
ユーザー 明智重蔵明智重蔵
提出日時 2015-08-03 20:49:23
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 5,000 ms
コード長 602 bytes
コンパイル時間 2,510 ms
コンパイル使用メモリ 106,580 KB
実行使用メモリ 24,068 KB
最終ジャッジ日時 2023-09-25 03:07:37
合計ジャッジ時間 5,457 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
21,804 KB
testcase_01 AC 69 ms
21,888 KB
testcase_02 AC 68 ms
21,940 KB
testcase_03 AC 68 ms
21,992 KB
testcase_04 AC 69 ms
19,948 KB
testcase_05 AC 68 ms
21,924 KB
testcase_06 AC 69 ms
22,064 KB
testcase_07 AC 68 ms
22,040 KB
testcase_08 AC 69 ms
23,964 KB
testcase_09 AC 68 ms
22,064 KB
testcase_10 AC 67 ms
21,900 KB
testcase_11 AC 67 ms
19,896 KB
testcase_12 AC 67 ms
19,792 KB
testcase_13 AC 68 ms
22,120 KB
testcase_14 AC 68 ms
22,008 KB
testcase_15 AC 69 ms
23,856 KB
testcase_16 AC 68 ms
22,000 KB
testcase_17 AC 67 ms
24,068 KB
testcase_18 AC 68 ms
22,000 KB
testcase_19 AC 68 ms
21,920 KB
testcase_20 AC 68 ms
23,892 KB
testcase_21 AC 68 ms
21,928 KB
testcase_22 AC 67 ms
19,968 KB
testcase_23 AC 68 ms
22,064 KB
testcase_24 AC 67 ms
21,848 KB
testcase_25 AC 67 ms
21,916 KB
testcase_26 AC 67 ms
21,956 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;

class Program
{
    static List<string> GetInputList()
    {
        var WillReturn = new List<string>();
        string wkStr;
        while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr);
        return WillReturn;
    }

    static void Main()
    {
        List<string> InputList = GetInputList();
        decimal[] wkArr = InputList[0].Split(' ').Select(X => decimal.Parse(X)).ToArray();
        decimal D = wkArr[0];
        decimal P = wkArr[1];
        Console.WriteLine(Math.Truncate(D + D * P / 100));
    }
}
0