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