結果

問題 No.46 はじめのn歩
ユーザー うわばみうわばみ
提出日時 2020-04-29 16:07:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 317 bytes
コンパイル時間 1,213 ms
コンパイル使用メモリ 67,864 KB
実行使用メモリ 24,080 KB
最終ジャッジ日時 2023-08-19 06:46:31
合計ジャッジ時間 2,730 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,800 KB
testcase_01 AC 61 ms
19,812 KB
testcase_02 AC 62 ms
21,812 KB
testcase_03 AC 62 ms
21,912 KB
testcase_04 AC 61 ms
21,820 KB
testcase_05 AC 60 ms
19,796 KB
testcase_06 AC 61 ms
23,860 KB
testcase_07 AC 61 ms
21,820 KB
testcase_08 AC 64 ms
24,080 KB
testcase_09 AC 61 ms
21,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] n = Console.ReadLine().Split().Select(a => int.Parse(a)).ToArray();
        int result = n[1] / n[0];
        if(result * n[0] < n[1])
        {
            result++;
        }
        Console.WriteLine($"{result}");
    }
}
0