結果

問題 No.858 わり算
ユーザー merumeru_333333merumeru_333333
提出日時 2019-09-22 18:31:42
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 927 ms
コンパイル使用メモリ 110,324 KB
実行使用メモリ 25,248 KB
最終ジャッジ日時 2023-10-19 07:22:01
合計ジャッジ時間 1,775 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,248 KB
testcase_01 AC 29 ms
25,236 KB
testcase_02 AC 29 ms
25,236 KB
testcase_03 AC 29 ms
25,236 KB
testcase_04 AC 29 ms
25,236 KB
testcase_05 AC 29 ms
25,236 KB
testcase_06 AC 29 ms
25,236 KB
testcase_07 AC 29 ms
25,236 KB
testcase_08 AC 29 ms
25,236 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 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