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