結果

問題 No.858 わり算
ユーザー merumeru_333333
提出日時 2019-09-22 18:31:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 3,349 ms
コンパイル使用メモリ 111,012 KB
実行使用メモリ 27,812 KB
最終ジャッジ日時 2025-01-07 14:51:59
合計ジャッジ時間 1,845 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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 abcd
{
    public static void Main()
    {
        var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList();
        Console.Write(a[0] / a[1] +".");
        for(int i = 0; i <= 49; ++i)
        {
            a[0] = 10 * (a[0] % a[1]);
            Console.Write(a[0] / a[1]);
        }
    }
}
0