結果

問題 No.858 わり算
ユーザー ixTL255ixTL255
提出日時 2019-09-08 01:05:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 3,841 ms
コンパイル使用メモリ 115,416 KB
実行使用メモリ 29,956 KB
最終ジャッジ日時 2025-01-07 14:51:52
合計ジャッジ時間 3,448 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

public class Yuki858
{
	public static void Main()
	{
		var ab = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
		
		Console.Write(ab[0] / ab[1]);
		Console.Write(".");

		for(var i = 0; i < 50; ++i)
		{
			ab[0] = ab[0] % ab[1] * 10;
			Console.Write(ab[0] / ab[1]);
		}
	}
}
0