結果
問題 | No.56 消費税 |
ユーザー |
![]() |
提出日時 | 2019-05-17 00:31:06 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 721 ms |
コンパイル使用メモリ | 109,572 KB |
実行使用メモリ | 26,972 KB |
最終ジャッジ日時 | 2024-09-17 05:43:43 |
合計ジャッジ時間 | 2,286 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 19 WA * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;using System.Collections.Generic;using System.Text;class No56{static void Main(string[] args){string[] input = Console.ReadLine().Split(' ');float price = float.Parse(input[0]);float taxRate = float.Parse(input[1]) / 100;Console.WriteLine(Math.Floor(price + price * taxRate));}}