結果
| 問題 |
No.2850 Make Slimes
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-25 13:42:56 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 383 bytes |
| コンパイル時間 | 2,745 ms |
| コンパイル使用メモリ | 244,168 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-08-25 13:43:03 |
| 合計ジャッジ時間 | 3,169 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if(A == 0) {
if(0 < C) cout << 0 << endl;
else cout << D/B << endl;
return 0;
}
if(B == 0) {
if(0 < D) cout << 0 << endl;
else cout << C/A << endl;
return 0;
}
cout << min(C/A, D/B) << endl;
return 0;
}