What are the time limits on posting and the levels??
I know 360 seconds are for new people like me, but was wondering if there was break down somewhere on this.
waittime = 360;
if(activity >= 15)
waittime = (int)(90 - activity);
if(activity >= 60)
waittime=(int)(34.7586 - (0.0793103 * activity));
if(activity >= 100)
waittime = max((int)(14-(activity/50)), 4);
Hi just an opinion !
Not that I can't understand it, I think it is not correct the pseudocode !
These code we read from top to bottom and in that way if, for example :
activity = 70 it would go in the first if because 70 >= 15 and thats not what you want there !
Suppose it's more correct like this :
waittime = 360;
if(activity >= 15 && activity < 60 )
waittime = (int)(90 - activity);
if(activity >= 60 && activity < 100 )
waittime=(int)(34.7586 - (0.0793103 * activity));
if(activity >= 100)
waittime = max((int)(14-(activity/50)), 4);
I think like this its more correctly described ! Correct me if I am wrong