結果

問題 No.2850 Make Slimes
ユーザー forest3
提出日時 2025-01-23 16:57:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 346 bytes
コンパイル時間 1,570 ms
コンパイル使用メモリ 166,392 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-01-23 16:57:26
合計ジャッジ時間 2,046 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#include <atcoder/math>
using namespace atcoder;

#define rep(i, n) for( ll i = 0; i < n; i++ )
using ll = long long;

int main() {
	int a, b, c, d;
	cin >> a >> b >> c >> d;
	int ans = 0;
	if(a == 0) ans = d / b;
	else if(b  == 0) ans = c / a;
	else ans = min(d / b, c / a);
	cout << ans << endl;
}
0