fork download
  1. #include <stdio.h>
  2. int hoge(int n){
  3. int a[10000];
  4. int i,c;
  5. a[1]=1;
  6. a[0]=0;
  7. for(i=n;i>0;i--){
  8. c=4*a[i-1]+3*a[i-2];
  9. }
  10. return c;}
  11. int main(){
  12. printf("%d",hoge(3));
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
Standard output is empty