結果

問題 No.56 消費税
ユーザー nanophoto12
提出日時 2014-11-04 23:44:51
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 360 bytes
コンパイル時間 1,003 ms
コンパイル使用メモリ 112,472 KB
実行使用メモリ 27,384 KB
最終ジャッジ日時 2024-07-18 01:44:09
合計ジャッジ時間 2,745 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
     public static void Main(string[] args)
     {
         var values = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
         int price = values[0];
         int taxRate = values[1];
         var sum = price + (int) (price*taxRate/100d);
         Console.WriteLine(sum);
     }   
}
0