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