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