結果

問題 No.428 小数から逃げる夢
ユーザー ixTL255
提出日時 2016-10-03 01:28:31
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 1,095 ms
コンパイル使用メモリ 103,168 KB
実行使用メモリ 18,816 KB
最終ジャッジ日時 2024-11-21 15:04:36
合計ジャッジ時間 5,696 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 81 WA * 19
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Numerics;

public class Test
{
	public static void Main()
	{
		BigInteger D = BigInteger.Parse("1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991");
		var n = int.Parse(Console.ReadLine());
		
		var nd = Convert.ToString(n * D);
		var cnd = Convert.ToString(D);
		
		if(nd.Length == cnd.Length) Console.WriteLine("0." + nd.ToString());
		else Console.WriteLine(nd.Insert(1, "."));
	}
}
0