結果

問題 No.46 はじめのn歩
ユーザー Mail_Tegami
提出日時 2022-10-02 21:50:41
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 14,206 ms
コンパイル使用メモリ 171,308 KB
実行使用メモリ 183,884 KB
最終ジャッジ日時 2024-12-25 21:00:33
合計ジャッジ時間 15,561 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (94 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  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
{
    static void Main()
    {
        string s = Console.ReadLine();
        string[] t = s.Split(' ');
        int a = int.Parse(t[0]);
        int b = int.Parse(t[1]);
        
        int result = b/a;
        if(a*result >b)
            result++;
        
        Console.WriteLine(result);
    }
}
0