結果
問題 |
No.804 野菜が苦手
|
ユーザー |
|
提出日時 | 2019-03-30 21:36:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 347 bytes |
コンパイル時間 | 1,378 ms |
コンパイル使用メモリ | 165,512 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 05:52:27 |
合計ジャッジ時間 | 2,254 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; int solve(int A, int B, int C, int D){ // x <= A // C * x <= B // (1 + C) * x <= D return min({A, B/C, D/(1 + C)}); } int main() { cin.tie(0); ios::sync_with_stdio(false); int A, B, C, D; cin >> A >> B >> C >> D; cout << solve(A, B, C, D) << endl; return 0; }