标签:main 接下来 而且 clu ace bsp tom put pid
http://acm.hdu.edu.cn/showproblem.php?pid=2160
代码:
#include <bits/stdc++.h>
using namespace std;
int A(int x) {
if(x <= 3)
return x;
else
return 2 * A(x - 1) - A(x - 3);
}
int main() {
int T;
scanf("%d", &T);
while(T --) {
int n;
scanf("%d", &n);
printf("%d\n", A(n));
}
return 0;
}
标签:main 接下来 而且 clu ace bsp tom put pid
原文地址:https://www.cnblogs.com/zlrrrr/p/9410859.html