Today is your birthday and you invite k friends.
You have n squared cakes and they all have the height 1. The ith cake have an edge length of Ai.
Now you want to cut these cakes in such a way that each friend has the same amount of cake, and each piece of cake must be cut from at most 1 cake (i.e. you canβt cut a a piece of cake of size a from cake A and a piece of size b from cake B to make a piece of size a+b).
Find the maximum cake size your friends will receive.
Input:
2 5
4 5
Output:
8.000
Reading | |
Minimum maximum | |
Beautiful number | |
Multiplication table | |
k-th digit | |
Maximum mean | |
Birthday | |
Sorting the differences | |
Collecting |