版本比较
骗分技巧
正文
增加 1 行删除 1 行
37 行未改动38394041424344454615 行未改动37 行未改动```cpp#include <iostream>using namespace std;int memory[40];int f(int x) {if (memory[x] != 0) return memory[x];else if (x <= 2) return memory[x] = 1;else return memory[x] = f(x - 1) + f(x - 2);15 行未改动37 行未改动38394041424344454615 行未改动37 行未改动```cpp#include <iostream>using namespace std;int memory[40];int f(int x) {if (memory[x] != 0) return memory[x];else if (x <= 2) return memory[x] = 1;else return memory[x] = f(x - 1) + f(x - 2);15 行未改动