Professional Documents
Culture Documents
Hello, (
(/users/16283)
Rohit
Problem
Solve this problem and get ranked among your peers
MAIN NAVIGATION
Home
Time Left:
Daily Code Byte 1 Hours 20 Mins and 10 Seconds
Contests
Competitions
Practice
Description (/contests/c/560/1883)
(https://codingblocks.com/cours
Submissions (/contests/c/560/1883/submissions)
He has 'd' Lobster Frittata and lots of boxes. The boxes are
(https://codingblocks.com/privacypo
not like the normal ones i.e if you put m bars inside it it
gets divided into m + 1 sections. Rishabh will be paid more
if he acts minimalist. But the firm is strictly against dividing
some box into more than 'i' sections as well putting more
than 's' Lobster Frittata into some section of the box. What
is the minimum number of boxes Rishabh will have to use
if he has to put all the Lobster Frittata in boxes, and he has
' b' divisors?
Input Format:
The first line contains four space-separated integers i, d, b,
s the maximum number of sections in the box, the number
of nuts, the number of divisors and the capacity of each
section of the box.
https://hack.codingblocks.com/contests/c/560/1883 1/4
10/22/2018 Hacker Blocks
Constraints:
2<=m<=1000
1<=d ,b ,s<=1000
Hello, (
(/users/16283) Output Format:
Rohit
Print a single integer which is the answer
3 10 3 3
Home
Sample Output:
Daily Code Byte
2
Contests
Time Limit: 1 sec
Competitions
Practice
100 11 100/100 8
(https://codingblocks.com/cours
(https://online.codingblocks.com
Help
T(https://codingblocks.com/tos.html)
o
S
(https://codingblocks.com/privacypo
https://hack.codingblocks.com/contests/c/560/1883 2/4
10/22/2018 Hacker Blocks
Home
Contests
Competitions
Practice
(https://codingblocks.com/cours
(https://online.codingblocks.com
Help
RESET RUN SUBMIT
(https://codingblocks.com/privacypo
https://hack.codingblocks.com/contests/c/560/1883 3/4
10/22/2018 Hacker Blocks
BEST SUBMISSION
Hello, (
(/users/16283)
Rohit
(https://codingblocks.com/privacypo
https://hack.codingblocks.com/contests/c/560/1883 4/4