結果

問題 No.46 はじめのn歩
ユーザー soi09476291soi09476291
提出日時 2019-11-09 17:29:33
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 5,000 ms
コード長 451 bytes
コンパイル時間 2,338 ms
コンパイル使用メモリ 102,744 KB
実行使用メモリ 22,804 KB
最終ジャッジ日時 2023-10-13 07:22:50
合計ジャッジ時間 3,744 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,704 KB
testcase_01 AC 58 ms
20,892 KB
testcase_02 AC 57 ms
20,720 KB
testcase_03 AC 57 ms
18,736 KB
testcase_04 AC 59 ms
20,776 KB
testcase_05 AC 58 ms
20,888 KB
testcase_06 AC 58 ms
22,744 KB
testcase_07 AC 58 ms
22,804 KB
testcase_08 AC 57 ms
22,736 KB
testcase_09 AC 59 ms
22,740 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace ConsoleApp11
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] str = Console.ReadLine().Split(' ');

            int a = int.Parse(str[0]);
            int b = int.Parse(str[1]);

            if(b % a != 0)
            {
                Console.Write((b / a) + 1);
            }
            else
            {
                Console.Write(b / a);
            }
        }
    }
}
0