結果
| 問題 | No.428 小数から逃げる夢 | 
| コンテスト | |
| ユーザー |  ixTL255 | 
| 提出日時 | 2016-10-03 01:30:26 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 33 ms / 1,000 ms | 
| コード長 | 599 bytes | 
| コンパイル時間 | 891 ms | 
| コンパイル使用メモリ | 109,324 KB | 
| 実行使用メモリ | 28,612 KB | 
| 最終ジャッジ日時 | 2024-11-21 15:04:43 | 
| 合計ジャッジ時間 | 6,535 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 100 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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
		{
			var x = nd.Length - cnd.Length;
			Console.WriteLine(nd.Insert(x, "."));
		}
	}
}
            
            
            
        