参考解答
static int Fn(int n)
{
if (n <= 0)
{
throw new ArgumentOutOfRangeException();
if (n == 1||n==2)
{
return 1;
return checked(Fn(n - 1) + Fn(n - 2)); // when n>46 memory will overflow
相似问题
有A和B两组物体 有什么办法能够保证A组物体永远比B组物体先渲染?
有A和B两组物体,有什么办法能够保证A组物体永远比B组物体先渲染?
NGUI中Panel和Anchor的作用是什么?
NGUI中Panel和Anchor的作用是什么?
电脑上的hosts文件是做什么用的?
电脑上的hosts文件是做什么用的?
Unity的Shader中 Blend SrcAlpha OneMinusSrcAlpha这句话是什
Unity的Shader中,Blend SrcAlpha OneMinusSrcAlpha这句话是什么意思?
localPosition与position的使用区别是什么?
localPosition与position的使用区别是什么?
