Problems Description
假设有两种微生物 X 和 Y, X出生后每隔3points钟points裂一次(数目加倍),Y出生后每隔2points钟points裂一次(数目加倍)。<br /> 一items新出生的X,半points钟之后吃掉1itemsY,并且,从此开始,每隔1points钟吃1itemsY,<br /> 现在已知有新出生的 X与Y的数量,求Zpoints钟后Y的数目。<br /> <br />
Input格式
<p> 有多行数据,每行数数的格式是X Y Z。(输入数据保证X, Y在Zpoints钟发展内不超过 2^31) </p>
Output格式
<p> 每行输出Zpoints钟后Y的数量! </p>
Sample
Sample Input 1
1 10 60
2 22 40
Sample Output 1
1083179008
4374528
Submit Code
请先Login后Submit
🤖 AI 解题助手
OpenRouter
就绪