#Lutece2888. 天结
天结
Migrated from Lutece 2888 天结
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
阿瓦罗正在帮菲亚升级她的武器。 初始武器等级为 ,阿瓦罗会进行 次升级,每次有 的概率成功,如果成功武器等级会加一,如果升级完成的等级为 ,武器的 会增加 。 现在阿瓦罗想知道武器的 期望增加多少。 为了避免精度问题,他只需要知道这个答案乘 的结果。 由于这个数字可能很大,他只想知道答案对 取模后的结果。
Input
一行读入三个整数 。
Output
输出一个整数表示答案对 取模后的结果。
Samples
2 2 2
24
Constraints
。
Resources
2022 UESTC ICPC Training for Math and Geometry