結果

問題 No.46 はじめのn歩
ユーザー mbanmban
提出日時 2016-11-05 11:03:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 367 bytes
コンパイル時間 812 ms
コンパイル使用メモリ 113,424 KB
実行使用メモリ 27,276 KB
最終ジャッジ日時 2024-05-03 22:12:19
合計ジャッジ時間 1,587 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
26,996 KB
testcase_01 AC 25 ms
24,848 KB
testcase_02 AC 26 ms
27,112 KB
testcase_03 AC 27 ms
27,144 KB
testcase_04 AC 26 ms
27,012 KB
testcase_05 AC 26 ms
27,252 KB
testcase_06 AC 26 ms
27,128 KB
testcase_07 AC 26 ms
24,952 KB
testcase_08 AC 26 ms
24,980 KB
testcase_09 AC 26 ms
27,276 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;
using System.Text;
using System.Threading.Tasks;

class Magatro
{
    static void Main()
    {
        int[]ab= Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        int ans = ab[1] % ab[0] == 0 ? ab[1] / ab[0] : ab[1] / ab[0] + 1;
        Console.WriteLine(ans);
       
    }
}
0