結果

問題 No.56 消費税
ユーザー chankou0920chankou0920
提出日時 2017-09-29 12:21:30
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 256 bytes
コンパイル時間 991 ms
コンパイル使用メモリ 112,648 KB
実行使用メモリ 27,192 KB
最終ジャッジ日時 2024-04-27 16:17:30
合計ジャッジ時間 2,554 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
24,880 KB
testcase_01 AC 23 ms
22,960 KB
testcase_02 AC 22 ms
22,708 KB
testcase_03 AC 23 ms
24,880 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 24 ms
26,836 KB
testcase_08 AC 24 ms
25,152 KB
testcase_09 AC 24 ms
24,776 KB
testcase_10 AC 26 ms
26,940 KB
testcase_11 AC 25 ms
25,020 KB
testcase_12 AC 23 ms
22,968 KB
testcase_13 AC 23 ms
24,676 KB
testcase_14 AC 24 ms
25,140 KB
testcase_15 AC 24 ms
22,960 KB
testcase_16 AC 24 ms
25,020 KB
testcase_17 AC 24 ms
27,192 KB
testcase_18 AC 24 ms
24,924 KB
testcase_19 AC 24 ms
25,180 KB
testcase_20 AC 24 ms
24,748 KB
testcase_21 AC 24 ms
24,800 KB
testcase_22 AC 24 ms
25,032 KB
testcase_23 AC 24 ms
25,052 KB
testcase_24 AC 24 ms
25,048 KB
testcase_25 AC 25 ms
26,712 KB
testcase_26 AC 24 ms
25,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
	public static void Main(string[] args) {
		string[] s = Console.ReadLine().Split(' ');
		int value = int.Parse(s[0]);
		float tax = (100f + float.Parse(s[1])) / 100f;
		Console.WriteLine(Math.Floor(value * tax));
	}
}
0