結果
問題 | No.56 消費税 |
ユーザー |
![]() |
提出日時 | 2019-05-17 00:42:37 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 905 ms |
コンパイル使用メモリ | 110,920 KB |
実行使用メモリ | 26,948 KB |
最終ジャッジ日時 | 2024-09-17 05:43:48 |
合計ジャッジ時間 | 2,156 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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(' ');int price = int.Parse(input[0]);Console.WriteLine(Math.Floor(price + price * float.Parse(input[1]) / 100));}}