結果

問題 No.46 はじめのn歩
ユーザー curryudon08curryudon08
提出日時 2020-02-12 23:37:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 1,532 ms / 5,000 ms
コード長 423 bytes
コンパイル時間 956 ms
コンパイル使用メモリ 114,212 KB
実行使用メモリ 27,132 KB
最終ジャッジ日時 2024-04-15 00:19:56
合計ジャッジ時間 3,311 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
25,128 KB
testcase_01 AC 28 ms
27,132 KB
testcase_02 AC 28 ms
27,040 KB
testcase_03 AC 28 ms
23,088 KB
testcase_04 AC 29 ms
24,868 KB
testcase_05 AC 29 ms
27,000 KB
testcase_06 AC 28 ms
25,256 KB
testcase_07 AC 29 ms
25,336 KB
testcase_08 AC 1,532 ms
27,036 KB
testcase_09 AC 28 ms
25,008 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.Linq;

namespace _0046
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();
            var a = n[0];
            var b = n[1];

            var c = 0;
            while(b > 0){
                b -= a;
                c++;
            }
            Console.WriteLine(c);
        }
    }
}
0