結果

問題 No.285 消費税2
ユーザー nanophoto12nanophoto12
提出日時 2015-12-06 14:15:43
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 479 bytes
コンパイル時間 3,258 ms
コンパイル使用メモリ 102,016 KB
実行使用メモリ 22,744 KB
最終ジャッジ日時 2023-10-12 16:42:13
合計ジャッジ時間 5,442 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,604 KB
testcase_01 AC 57 ms
20,760 KB
testcase_02 AC 57 ms
20,612 KB
testcase_03 AC 57 ms
20,620 KB
testcase_04 AC 57 ms
20,628 KB
testcase_05 AC 57 ms
20,604 KB
testcase_06 AC 57 ms
20,780 KB
testcase_07 AC 57 ms
20,528 KB
testcase_08 AC 57 ms
22,652 KB
testcase_09 AC 57 ms
22,684 KB
testcase_10 AC 57 ms
20,628 KB
testcase_11 AC 57 ms
20,704 KB
testcase_12 AC 57 ms
22,620 KB
testcase_13 AC 57 ms
20,732 KB
testcase_14 AC 57 ms
22,672 KB
testcase_15 AC 57 ms
22,660 KB
testcase_16 AC 56 ms
20,628 KB
testcase_17 AC 57 ms
20,624 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 57 ms
22,736 KB
testcase_21 AC 57 ms
22,640 KB
testcase_22 AC 57 ms
20,628 KB
testcase_23 AC 57 ms
20,596 KB
testcase_24 WA -
testcase_25 AC 56 ms
20,664 KB
testcase_26 AC 58 ms
22,664 KB
testcase_27 AC 57 ms
20,680 KB
testcase_28 WA -
testcase_29 AC 57 ms
20,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 No285
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			var n = Convert.ToInt64(Console.ReadLine ());

			var n100 = n * 108L;

			var div = n100 / 100L;
			var mod = n100 % 100L;
			if (mod == 0) {
				Console.WriteLine (div.ToString ());
				return;
			}
			string result = div.ToString () + "." + mod.ToString ();
			Console.WriteLine (result.ToString ());
			return;
		}
	}
}
0