結果
| 問題 | No.804 野菜が苦手 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-26 11:45:58 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 381µs | |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 875 ms |
| コンパイル使用メモリ | 179,200 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-19 01:12:49 |
| 合計ジャッジ時間 | 2,221 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
#define cinf(n,x) for(int i=0;i<(n);i++) cin >> x[i];
typedef long long int ll;
using namespace std;
int main(){
int a,b,c,d;
cin >>a>>b>>c>>d;
int i=0;
while(i+1+(i+1)*c<=d && (i+1)*c<=b) i++;
cout << min (i,a)<< endl;
}