結果
問題 | No.2850 Make Slimes |
ユーザー |
![]() |
提出日時 | 2024-08-25 13:31:52 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 493 bytes |
コンパイル時間 | 5,175 ms |
コンパイル使用メモリ | 306,884 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-08-25 13:31:58 |
合計ジャッジ時間 | 5,593 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include <atcoder/all>#include <bits/stdc++.h>#define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++)using namespace atcoder;using namespace std;typedef long long ll;template <typename T, typename S> bool chmin(T &a, S b) {if (a > b) {a = b;return 1;}return 0;}int main() {int a, b, c, d;cin >> a >> b >> c >> d;int ans = 1e9;if (a)chmin(ans, c / a);if (b)chmin(ans, d / b);cout << ans << endl;}