結果
問題 | No.804 野菜が苦手 |
ユーザー |
|
提出日時 | 2020-04-08 09:54:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 338 bytes |
コンパイル時間 | 665 ms |
コンパイル使用メモリ | 65,752 KB |
最終ジャッジ日時 | 2025-01-09 15:05:34 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 |
ソースコード
#include <iostream>void solve() {int a, b, c, d;std::cin >> a >> b >> c >> d;int x;for (x = 1; x <= a; ++x) {if (x * c > b || x * (c + 1) > d) break;}std::cout << x - 1 << std::endl;}int main() {std::cin.tie(nullptr);std::ios::sync_with_stdio(false);solve();return 0;}