九度教程第88题
C语言源码:[cpp]#include<stdio.h>long long f(long long n){if(n==1)return 2;elsereturn 3*f(n-1)+2;}int main(){long long n;while(scanf("%lld",&n)!=EOF)printf("%lld\n",f(n));}
补充:软件开发 , C++ ,
C语言源码:[cpp]#include<stdio.h>long long f(long long n){if(n==1)return 2;elsereturn 3*f(n-1)+2;}int main(){long long n;while(scanf("%lld",&n)!=EOF)printf("%lld\n",f(n));}
补充:软件开发 , C++ ,