結果
| 問題 |
No.2850 Make Slimes
|
| コンテスト | |
| ユーザー |
eve__fuyuki
|
| 提出日時 | 2024-08-25 19:50:58 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 304 bytes |
| コンパイル時間 | 1,798 ms |
| コンパイル使用メモリ | 192,284 KB |
| 最終ジャッジ日時 | 2025-02-24 02:10:30 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
void fast_io() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main() {
fast_io();
int a, b, c, d;
cin >> a >> b >> c >> d;
int ans = 1e9;
if (a) {
ans = min(ans, c / a);
}
if (b) {
ans = min(ans, d / b);
}
cout << ans << endl;
}
eve__fuyuki