結果

問題 No.388 階段 (1)
ユーザー Lo_OT
提出日時 2018-03-11 19:15:39
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 253 bytes
コンパイル時間 499 ms
コンパイル使用メモリ 55,380 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 00:21:41
合計ジャッジ時間 1,129 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
    int f,s;
    cin >> f >> s;
    
    if(f > s){
        cout << f / s + 1 << endl;
    }else if(f == s){
        cout << 2 << endl;
    } else {
        cout << 1 << endl;
    }

    return 0;
}
0