結果

問題 No.46 はじめのn歩
ユーザー vjudge1
提出日時 2025-09-04 23:45:35
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 382 ms / 5,000 ms
コード長 297 bytes
コンパイル時間 1,917 ms
コンパイル使用メモリ 130,176 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-04 23:45:39
合計ジャッジ時間 3,208 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main()
{
    long long a, b;
    cin >> a >> b;
    int dem = 0;
    while (true)
    {
        if ((dem * a) < b)
        {
            dem++;
        }
        else
        {
            break;
        }
    }
    cout << dem << endl;
    return 0;
}
0