結果
| 問題 | No.56 消費税 |
| コンテスト | |
| ユーザー |
_mi_lin_
|
| 提出日時 | 2019-04-05 10:48:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 19 ms / 5,000 ms |
| コード長 | 571 bytes |
| 記録 | |
| コンパイル時間 | 868 ms |
| コンパイル使用メモリ | 104,320 KB |
| 実行使用メモリ | 19,712 KB |
| 最終ジャッジ日時 | 2026-06-06 06:53:02 |
| 合計ジャッジ時間 | 3,138 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 |
コンパイルメッセージ
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.Linq;
using System.Text;
using System.Threading.Tasks;
namespace No56tax
{
class Program
{
static void Main(string[] args)
{
//値の入力
string[] value = Console.ReadLine().Split(' ');
int price = int.Parse(value[0]);
double tax = double.Parse(value[1]);
//消費税の計算
double ans = price + (price * (tax / 100));
//表示
Console.WriteLine(Math.Floor(ans));
}
}
}
_mi_lin_