Computer Science, asked by gayathriknaidu456, 8 months ago

n a crossover fantasy universe, Houin Kyoma is up in a battle against a powerful monster Nomu that can kill him in a single blow. However being a brilliant scientist Kyoma found a way to pause time for exactly M seconds. Each second, Kyoma attacks Nomu with certain power, which will reduce his health points by that exact power. Initially Nomu has H Health Points. Nomu dies when his Health Points reach 0. Normally Kyoma performs Normal Attack with power A. Besides from Kyoma’s brilliance, luck plays a major role in events of this universe. Kyoma’s Luck L is defined as probability of performing a super attack. A super attack increases power of Normal Attack by C. Given this information calculate and print the probability that Kyoma kills Nomu and survives. If Kyoma dies print “RIP”. Constraints 0 < T <= 50 1 <= A, H, C, L1, L2 <= 1000 1 <= M <= 20. L1<=L2

Answers

Answered by viratsharma2005
0

Answer:

okokokokokokokokokokokookokokokokokokok

Explanation:

Similar questions