結果

問題 No.2850 Make Slimes
ユーザー prin_kemkemprin_kemkem
提出日時 2024-08-25 13:35:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 775 bytes
コンパイル時間 182 ms
コンパイル使用メモリ 82,532 KB
実行使用メモリ 53,912 KB
最終ジャッジ日時 2024-08-25 13:35:49
合計ジャッジ時間 880 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,532 KB
testcase_01 AC 35 ms
53,912 KB
testcase_02 AC 35 ms
52,512 KB
testcase_03 AC 35 ms
52,404 KB
testcase_04 AC 36 ms
52,612 KB
testcase_05 AC 35 ms
52,688 KB
testcase_06 AC 37 ms
52,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# from collections import defaultdict, deque, Counter
# from functools import cache
# # import copy
# # from itertools import combinations, permutations, product, accumulate, groupby, chain
# # from more_itertools import distinct_permutations
# from heapq import heapify, heappop, heappush
# import math
# import bisect
# from pprint import pprint
# from random import randint, shuffle, randrange
# import sys
# # sys.setrecursionlimit(200000)
# input = lambda: sys.stdin.readline().rstrip('\n')
# inf = float('inf')
# mod1 = 10**9+7
# mod2 = 998244353
# def ceil_div(x, y): return -(-x//y)

# #################################################   

a, b, c, d = map(int, input().split())
if a == 0:
    print(d//b)
elif b == 0:
    print(c//a)
else:
    print(min(c//a, d//b))
0