結果

問題 No.388 階段 (1)
ユーザー fushigu
提出日時 2019-05-17 09:24:08
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 212 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 54,876 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 05:49:40
合計ジャッジ時間 1,145 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 4 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main()
{
    int S, F;
    cin >> S >> F;
    if(S % F == 0)
    {
        cout << S / F + 1 << endl;
    }
    else
    {
        cout << S / F + 2 << endl;
    }
}
0