fork download
  1. #include <stdio.h>
  2.  
  3. int count = 0;
  4.  
  5. int hoge(int n){
  6. count++;
  7. if (n < 0) return 1;
  8. return 4*hoge(n-1) + hoge(n-2);
  9. }
  10.  
  11. int main(){
  12. hoge(3);
  13. printf("%d", count);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
15