I was wondering if there is any known mistake in this problem.
My recursive code seems to work for cases described in the problem. For example it generates 1105 for all hamming numbers of type 5 not exceeding 10^8.
I am getting answer snip! which the site seems to be rejecting. I will check again if I have any missed any enumeration step.
Here is my C code
snip !
Problem 204
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
-
gonzolino
- Posts: 17
- Joined: Thu Mar 12, 2009 4:17 pm
- Location: Lyon, France
- Contact:
Re: Problem 204
I nrajsaxena;
your code gives the good result for genHam(24, 400000000)+1), but the wrong one for genHam(24, 500000000)+1)...
But maybe your code is too close to a good solution to stay on the forum !
your code gives the good result for genHam(24, 400000000)+1), but the wrong one for genHam(24, 500000000)+1)...
But maybe your code is too close to a good solution to stay on the forum !
-
harryh
- Posts: 2091
- Joined: Tue Aug 22, 2006 9:33 pm
- Location: Thessaloniki, Greece
Re: Problem 204
I am afraid I had to snip parts of the first post, which could totally spoil the problem for others...
Remember: this is not a forum to display solutions or near-solutions and spoilers !
Remember: this is not a forum to display solutions or near-solutions and spoilers !
-
nrajsaxena
- Posts: 3
- Joined: Sun Mar 22, 2009 3:54 am
Re: Problem 204
My apologies. I should have checked the rules before posting. I was wondering if there was a mistake. I figured out what my mistake was.