fork download
  1. #include <stdio.h>
  2. int count=0;
  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.%d", hoge(-10),count);
  12. return 0;
  13. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
1.0