結果

問題 No.804 野菜が苦手
ユーザー fusilbayonet
提出日時 2019-05-27 10:41:23
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 276 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 30,720 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-17 15:28:24
合計ジャッジ時間 925 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<cstdio>

int main()
{
    int A, B, C, D;
    scanf("%d%d%d%d", &A, &B, &C, &D);
    
    if(C > D) {
        printf("%d", 0);
        return 0;
    }
    for(int i=0; ; i++)
        if(D < i + i*C) {
            printf("%d\n", i-1);
            return 0;
        }
}
0