#18940: 小聲mermer的見解


anniechang2005 (啵的四葉草)

School : 臺北市私立延平高級中學
ID : 83291
IP address : [203.72.178.252]
Last Login :
2020-04-01 17:12:48
c002. 10696 - f91 -- UVa10696 | From: [223.140.24.4] | Post Date : 2019-08-15 17:57

....在下我小聲說就好,說的不好還請各位指教.... .....副程式吧...... int f91 (int in0 ) { if (in0 <=100 ) { return f91(f91(in0 +11 ) ) ; } else { return in0 -10 ; } } 還請多多指教.......TKS 
#18941: Re:小聲mermer的見解


anniechang2005 (啵的四葉草)

School : 臺北市私立延平高級中學
ID : 83291
IP address : [203.72.178.252]
Last Login :
2020-04-01 17:12:48
c002. 10696 - f91 -- UVa10696 | From: [223.140.24.4] | Post Date : 2019-08-15 18:01

在放一次....

 

 
int f91 (int in0 )
{
        
    if (in0 <=100 )
    {
       return  f91(f91(in0 +11 ) ) ;
    }
    else
    {
         return in0 -10 ;
    }
}
 
//為甚麼格式都會跑掉...sorry...
 
 
ZeroJudge Forum