結果

問題 No.46 はじめのn歩
ユーザー kuspen
提出日時 2017-10-14 20:24:42
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 363 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 424 ms
コンパイル使用メモリ 53,592 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-17 14:52:05
合計ジャッジ時間 1,235 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>

using namespace std;
int main(void){

    int a, b;
    cin >> a >> b;

    int count = 0;
    int m = 0;
    while(true) {
        if(m >= b) break;
        m += a;
        count++;
    }

    cout << count << endl;

    return 0;

}
0