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