結果

問題 No.46 はじめのn歩
ユーザー Umekobuchacha
提出日時 2019-08-28 23:12:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 23 ms / 5,000 ms
コード長 576 bytes
コンパイル時間 756 ms
コンパイル使用メモリ 103,424 KB
実行使用メモリ 18,304 KB
最終ジャッジ日時 2024-11-17 16:39:12
合計ジャッジ時間 1,284 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
#if LocalDebug
            var exStdIn = new System.IO.StreamReader("stdin.txt");
            System.Console.SetIn(exStdIn);
#endif
            var Input = Console.ReadLine().Split(' ');
            var a = int.Parse(Input[0]);
            var b = int.Parse(Input[1]);
            var output = Convert.ToInt32(Math.Ceiling((double)b/a));

            System.Console.WriteLine(output);
#if LocalDebug
            System.Console.ReadKey();
#endif
        }
    }
}

0