結果

問題 No.858 わり算
ユーザー ixTL255ixTL255
提出日時 2019-09-08 01:05:27
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 363 bytes
コンパイル時間 5,146 ms
コンパイル使用メモリ 105,640 KB
実行使用メモリ 23,796 KB
最終ジャッジ日時 2023-09-09 22:13:32
合計ジャッジ時間 3,625 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
21,912 KB
testcase_01 AC 59 ms
21,892 KB
testcase_02 AC 59 ms
21,772 KB
testcase_03 AC 59 ms
21,780 KB
testcase_04 AC 59 ms
21,828 KB
testcase_05 AC 59 ms
23,796 KB
testcase_06 AC 59 ms
21,760 KB
testcase_07 AC 59 ms
21,800 KB
testcase_08 AC 59 ms
21,920 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;

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