結果

問題 No.2850 Make Slimes
ユーザー kyotoku1483
提出日時 2025-03-13 22:41:42
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2025-03-13 22:41:43
合計ジャッジ時間 1,044 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    a, b, c, d = map(int, input().split())
    x = y = 0
    if a > 0 and c > 0:
        x = c // a
    elif a > 0 and c == 0:
        x = 0
    elif a == 0:
        x = 1000
    if b > 0 and d > 0:
        y = d // b
    elif b > 0 and d == 0:
        y = 0
    elif b == 0:
        y = 1000
    print(min(x, y))


if __name__ == '__main__':
    main()
0