結果
問題 | No.804 野菜が苦手 |
ユーザー |
![]() |
提出日時 | 2021-03-23 20:23:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 1,858 ms |
コンパイル使用メモリ | 191,380 KB |
最終ジャッジ日時 | 2025-01-19 21:18:44 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) typedef pair<int,int>P; int main(){ int a,b,c,d,x; cin>>a>>b>>c>>d; x=0; for(int i=1;i<=a;i++){ if(i+i*c<=d && i*c<=b) continue; cout<<i-1<<endl; return 0; } cout<<a<<endl; return 0; }