結果
問題 | No.804 野菜が苦手 |
ユーザー |
|
提出日時 | 2019-08-18 15:55:40 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 751 ms |
コンパイル使用メモリ | 66,900 KB |
最終ジャッジ日時 | 2025-01-07 14:12:03 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <iostream> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c >> d; int ac = 1 + c; int e; if (d < ac) { e = 0; } else { int acd = d / ac; int bc = b / c; e = min(min(a, bc), acd); } cout << e << endl; return 0; }