编程练习,基础2202: I can do it!(I)题解 (youhavearecursiveformula)

痛心疾首 算法基础篇 38 0
题库丰富多样,涵盖各个领域,全网最全C++题库,让您在练习中不断成长!
is easy to calculate if n is smaller than 1000. But when n comes to 109,it may be hard to calculate the answer unless you can really computing!think you have this ability, so just do it!But the answer may be to large to calculate, so you can only calculate

You have a recursive formula such as It is easy to calculate if n is smaller than 1000. But when n comes to 109, it may be hard to calculate the answer unless you can really computing! I think you have this ability, so just do it! But the answer may be to large to calculate, so you can only calculate the answer mod 1e9+7.

编程练习,基础2202: I can do it!(I)题解
(youhavearecursiveformula)-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
成为编程大师,不再是梦想!全网最全C++题库,助您开启编程新篇章。

标签: 编程练习 基础2202: I can do it!(I)题解