結果
| 問題 |
No.804 野菜が苦手
|
| コンテスト | |
| ユーザー |
dgd1724
|
| 提出日時 | 2019-03-31 09:48:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 363 bytes |
| コンパイル時間 | 412 ms |
| コンパイル使用メモリ | 57,748 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-21 05:40:15 |
| 合計ジャッジ時間 | 1,211 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 18 |
ソースコード
#include <fstream>
#include <iostream>
int main() {
//std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf());
int A, B, C, D;
std::cin >> A >> B >> C >> D;
int ans = D / (1 + C);
if (B / C < ans) { ans = B / C; }
if (A < ans) { ans = A; }
if (B < C) {
std::cout << "0" << std::endl;
}
else {
std::cout << ans << std::endl;
}
return 0;
}
dgd1724