結果

問題 No.388 階段 (1)
コンテスト
ユーザー aaa aa
提出日時 2025-11-10 17:52:10
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 613 bytes
コンパイル時間 8,039 ms
コンパイル使用メモリ 171,512 KB
実行使用メモリ 188,240 KB
最終ジャッジ日時 2025-11-10 17:52:20
合計ジャッジ時間 9,467 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 9 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (115 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
public class Program
{
    public static void Main()
    {
        //int num = int.Parse(Console.ReadLine() ?? string.Empty);
        string[] kaidan =(Console.ReadLine() ?? string.Empty).Trim().Split(' ');

        if (int.Parse(kaidan[0]) < int.Parse(kaidan[1]))
        {
            Console.WriteLine("2");
        }
        else if(int.Parse(kaidan[0]) == int.Parse(kaidan[1]))
        {
            Console.WriteLine("1");
        }
        else
        {
            int hight = (int.Parse(kaidan[0]) / int.Parse(kaidan[1])) + 1;
            Console.WriteLine("{0}", hight);
        }
    }
}
0