for the one i posted, here is a way to do it with 6 function calls, i can't remember how i did it last night with 5 right now =/. I'll have to come up with it again.
b(b(b( (b(b(b(cNum)))+cNum)...
Type: Posts; User: Karshikinpa
for the one i posted, here is a way to do it with 6 function calls, i can't remember how i did it last night with 5 right now =/. I'll have to come up with it again.
b(b(b( (b(b(b(cNum)))+cNum)...
also, see what's the least number of function calls you can get them down too. for the one i posted, i got it down to 5 so far.
using the functions from the second one:
int a( int Number )
{
return( Number * 3 );
}
int b( int Number )
{
frist: tempNum = a(b(cNum))+cNum;
second: tempNum = b(a(a(cNum)));
i'll come up with one in a minute...
With textpad you can add shortcut keys to run any dos command and have it capture the output. I use MinGW (gcc for windows) as my compiler. Unfortunately you can't capture all of it's output with...
weekly work much better for me. i work friday-sunday, and have school monday-thursday. i'll have more time during the week to work on them myself. i just found this board a week or so ago and look...
Dave's ran in 1500ms on my computer using the same optimization level.
Prelude, what system are you running these on? I'm just curious for future comparisons.
I saw his code. It ran in 625 ms on my machine (1.54GHz Athlon XP on XP Pro, using MinGW and GCC 3.3 as compiler).
I don't expect it to be the fastest, but he does have floating point file...
dang, i knew it was over on sunday, but i didn't expect results for a couple days. here's what i wrote last night that i was gonna submit. any way you can tell me how fast it would be on your...
just taking a wild guess here, but I bet they can be of any size (as in you are to use the program from the previous contest).
since i just found out about these that kinda bothers me because now...