Search found 4 matches

by jricker
Fri Jan 11, 2002 6:03 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317910

I haven't actually dug into your logic to see if that works but at first glance, you need to be repeating your input until an EOF has been triggered.

Hope that helps,
Joel
by jricker
Fri Nov 02, 2001 2:38 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317910

Hoohoo...

I recently learned enough C++ to be dangerous and submitted my solution to P100:

"Your C++ program has solved Ok the problem 100 (The 3n + 1 problem)
in 0.050 seconds with low memory spent.
Congratulations!"

Yea!

Thanks for the help regarding the handling of reverse input integers ...
by jricker
Thu Nov 01, 2001 2:36 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317910


On 2001-10-31 17:52, ali wrote:
fast, but
why restrict only until 1000, the problem input is for 10000,


Actually it says, "All integers will be less than 10,000 and greater than 0.", so it should accept input up to 9999 right?


and please pay attention this problem can be accept not ordered ...
by jricker
Sat Oct 13, 2001 11:02 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317910

100 - The 3n + 1 problem

Hi all,

I've put together my own version of Problem 100 but its in PHP at the moment so I can't quite submit it yet until I convert it to Pascal but would love to hear some feedback on its execution:

http://www.justthefaqs.org/new/hailstones.php

Note: Large gaps between i and j will result in a ...

Go to advanced search