結果

問題 No.46 はじめのn歩
ユーザー P
提出日時 2023-09-11 15:56:47
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 378 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 2,852 ms
コンパイル使用メモリ 164,896 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-29 06:03:21
合計ジャッジ時間 2,911 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,l,n) for (int i = (l); i < (n); i++)
using ll = long long;
using namespace std;
int main(){
    int a, b;
    cin >> a >> b;
    int num = 0; int cnt = 0;
    while (num < b) {
        num += a;
        cnt++;
    }
    cout << cnt << endl;
}
0