結果

問題 No.46 はじめのn歩
ユーザー Hidetoshi KamataHidetoshi Kamata
提出日時 2022-05-05 17:14:59
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 385 bytes
コンパイル時間 9,841 ms
コンパイル使用メモリ 143,288 KB
実行使用メモリ 161,084 KB
最終ジャッジ日時 2023-09-18 01:48:58
合計ジャッジ時間 11,145 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
28,452 KB
testcase_01 AC 50 ms
30,652 KB
testcase_02 AC 50 ms
28,788 KB
testcase_03 AC 50 ms
28,376 KB
testcase_04 AC 54 ms
28,692 KB
testcase_05 AC 51 ms
28,556 KB
testcase_06 AC 52 ms
28,632 KB
testcase_07 AC 51 ms
28,696 KB
testcase_08 AC 52 ms
28,520 KB
testcase_09 AC 52 ms
161,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 151 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var line1 = Console.ReadLine();
        var values = line1.Split(" ", 2).Select(m => Convert.ToDecimal(m)).ToArray();
        var step = values[0];
        var target = values[1];

        var result = Math.Ceiling(target / step);
        Console.WriteLine(result.ToString());
    }
}
0