摘要:
#include using namespace std; long long a[51]; int main() { int n; a[1] = 3; a[2] = 6; a[3] = 6; for (int i = 4; i > n) { cout << a[n] << endl; } } 阅读全文
摘要:
#include using namespace std; long long fib(int n) { long long f0 = 1; long long f1 = 1; if (n = 2) { long long f2 = f0 + f1; f0 = f1; f1 = f2; n--; ... 阅读全文