题解(打表)
2024-09-15 20:09:38
发布于:广东
0阅读
0回复
0点赞
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
int a[30] = {1,2,4,7,12,21,37,65,114,200,351,616,1081,1897,3329,5842,10252,17991,31572,55405,97229,170625,299426,525426,922111,1618192,2839729,4983377,8745217,15346786};
printf("%d",a[n-1]);
return 0;
}
这里空空如也
有帮助,赞一个