結果

問題 No.46 はじめのn歩
ユーザー ksbaseball
提出日時 2021-04-03 16:27:59
言語 C++17(clang)
(17.0.6 + boost 1.87.0)
結果
AC  
実行時間 50 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 2,821 ms
コンパイル使用メモリ 162,744 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 22:33:24
合計ジャッジ時間 3,872 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int ippo, goal;
    cin >> ippo; cin >> goal;
    int total = 0;
    int output = 0; 

    while(total < goal){
        total += ippo;
        output += 1; 
    }
    cout << output;
    return 0;
}
0