結果

問題 No.388 階段 (1)
ユーザー Hidetoshi KamataHidetoshi Kamata
提出日時 2022-05-05 17:19:05
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 11,043 ms
コンパイル使用メモリ 146,104 KB
実行使用メモリ 164,464 KB
最終ジャッジ日時 2023-09-18 01:54:46
合計ジャッジ時間 9,203 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
30,664 KB
testcase_01 AC 50 ms
28,712 KB
testcase_02 AC 51 ms
30,756 KB
testcase_03 AC 51 ms
30,532 KB
testcase_04 AC 51 ms
28,660 KB
testcase_05 AC 51 ms
28,696 KB
testcase_06 AC 51 ms
30,524 KB
testcase_07 AC 51 ms
28,296 KB
testcase_08 AC 51 ms
28,632 KB
testcase_09 AC 51 ms
28,536 KB
testcase_10 AC 50 ms
30,744 KB
testcase_11 AC 51 ms
30,464 KB
testcase_12 AC 50 ms
28,580 KB
testcase_13 AC 50 ms
28,692 KB
testcase_14 AC 51 ms
164,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 131 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 height = values[1];

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