递归 = =。。
题目的意思是,给你递归式,算。。。
开始没仔细看题,做到后来,瞟见一句话
The problem is, if implemented directly, for moderate values of a, b and c (for example, a = 15, b = 15, c = 15), the program takes hours to run because of the massive recursion.
= =。好吧。怪我。没好好看题。本来想找规律的,找到一点规律不过不够用,然后就想着,打表吧。
一会一看 = =。。好做啊,每个数字只跟前面的数字有关系,好吧,打表吧 = =。。
超过20全按20算了,多好,果断打表过了。如果把这个数组存一下,再弄个新程序,直接打表,估计会更快~~