結果

問題 No.56 消費税
ユーザー k-a-rgbk-a-rgb
提出日時 2023-08-29 14:54:28
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 5,000 ms
コード長 430 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 109,588 KB
実行使用メモリ 26,016 KB
最終ジャッジ日時 2024-12-30 23:31:56
合計ジャッジ時間 2,748 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.Collections.Generic;
using System.Linq;

namespace PracticeAtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
			
			
			//中央値
			string sA = Console.ReadLine();
			string[] tA = sA.Split(' ');
			
			double sumA = 0;
			sumA = double.Parse(tA[0]) /100 * double.Parse(tA[1]);
			
			int sumB = int.Parse(tA[0]) + (int)sumA;
				Console.WriteLine(sumB);
		}
    }
}
0