結果

問題 No.2850 Make Slimes
ユーザー VvyLw
提出日時 2024-08-25 17:26:37
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 482 bytes
コンパイル時間 1,164 ms
コンパイル使用メモリ 107,480 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-08-25 17:26:40
合計ジャッジ時間 1,971 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC optimize("O2")
#ifdef local
#include <C++/core/io/debug_print.hpp>
#else
#define dump(...) void(0);
#endif

#include <iostream>
#include <cmath>
namespace man {

}
int main() {
    std::cin.tie(nullptr) -> sync_with_stdio(false);
    int a, b, c, d;
    std::cin >> a >> b >> c >> d;
    if(a == 0) {
        std::cout << d / b << '\n';
    } else if(b == 0) {
        std::cout << c / a << '\n';
    } else {
        std::cout << std::min(c / a, d / b) << '\n';
    }
}
0