結果

問題 No.56 消費税
ユーザー huffman56huffman56
提出日時 2022-05-05 09:22:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 604 bytes
コンパイル時間 2,691 ms
コンパイル使用メモリ 102,704 KB
実行使用メモリ 25,792 KB
最終ジャッジ日時 2023-09-17 15:54:45
合計ジャッジ時間 5,456 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
23,824 KB
testcase_01 AC 69 ms
25,792 KB
testcase_02 AC 69 ms
23,696 KB
testcase_03 AC 69 ms
23,980 KB
testcase_04 AC 69 ms
23,932 KB
testcase_05 AC 70 ms
23,632 KB
testcase_06 AC 69 ms
23,648 KB
testcase_07 AC 69 ms
25,716 KB
testcase_08 AC 68 ms
23,980 KB
testcase_09 AC 69 ms
23,792 KB
testcase_10 AC 69 ms
23,928 KB
testcase_11 AC 69 ms
21,780 KB
testcase_12 AC 68 ms
23,908 KB
testcase_13 AC 68 ms
23,804 KB
testcase_14 AC 68 ms
23,572 KB
testcase_15 AC 69 ms
25,732 KB
testcase_16 AC 69 ms
23,676 KB
testcase_17 AC 68 ms
23,860 KB
testcase_18 AC 69 ms
23,756 KB
testcase_19 AC 68 ms
23,680 KB
testcase_20 AC 69 ms
23,712 KB
testcase_21 AC 68 ms
23,676 KB
testcase_22 AC 69 ms
23,736 KB
testcase_23 AC 69 ms
23,776 KB
testcase_24 AC 69 ms
23,776 KB
testcase_25 AC 68 ms
21,692 KB
testcase_26 AC 69 ms
23,740 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;


namespace yukicoder
{
    class Program
    {
        static void Main()
        {
            var n = Console.ReadLine().Split().Select(Double.Parse).ToArray();
            var D = n[0];
            Double P = n[0] * (n[1] / 100);

            Console.WriteLine(Math.Floor(D + P));

        }
    }
}
0