其实只要两个变量就可以了 int a = 1, c = 3; for (int i = 1; i < target; i++) { a = c - a; c = c + a; } return a;
2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务