瘟疫

Tag:

Background

Around February 2020, a plague broke out across the country. In order to prevent being infected by the plague, Tim had to allocate disinfectant to his classmates to prevent the disaster. Since Tim only knows the secret recipe for making disinfectant, and residents throughout WH city need this disinfectant, Tim has to make it day and night.

2020年2月前后,全国爆发瘟疫,为了预防被瘟疫感染,\(Tim\)不得不和他的同学们配置消毒水来预防这场灾难。由于制作消毒水的秘方只有\(Tim\)自己知道,而整个\(WH\)市的居民都需要这种消毒水,因此\(Tim\)不得不日以继日的制作。

Description

It is known that the disinfectant produced by Tim can be used by m1 people for n1 days or m2 people for n2 days, so the problem arises. How many people can use the disinfectant produced by Tim for one day at most?

已知Tim所制作的消毒水可以供\(m1\)人使用\(n1\)天,或者供\(m2\)人使用\(n2\)天,那么问题来了,请问:\(Tim\)每天所制作的消毒水最多可供几个人使用一天?

Input

A total of one row, including four integers: m1,n1,m2,n2.

共一行,包含四个整数,分别为:\(m1,n1,m2,n2\)。

Output

An integer of n indicates that the disinfectant produced by Tim can be used by n people for up to one day.

一个整数\(n\),表示\(Tim\)每天制作的消毒水最多可供\(n\)个人使用一天。

Input

15 20 20 10

Output

10

Limitation

\(0<m1,n1,m2,n2<=100\)

Source

Amorphophallus Orz Group

信息

ID
1001
难度
2
分类
数学 点击显示
标签
递交数
26
已通过
8
通过率
31%
上传者

相关

在下列训练计划中:

AOG题库训练计划

在下列比赛中:

AOG月赛测试题1「2月月赛」