int CalCowsNum(int Year){
int iCnt=0;
}
long lCowsNum= 1;
for(iCnt=1; iCnt<=iYear; iCnt++){
if(iCnt>=4){
if((iYear-iCnt)>3){
lCowsNum += CalCowsNum(iYear - iCnt);
else{
lCowsNum++;
}
}
}
}
return lCowsNum;
}
int main(){
int iYear =0;
scanf ("%d", &iYear);
prinf("In' %d years, There is %d cows.n" ,iYear, CalCowsNum(iYear):
return o;
}
输入20