Ugh... I thought all the headaches on this one were behind me. For k=10, my program finds 50 unique values of s(x,y,z) and gives u+v as 330436949. The troubling part is everything so far is checking out.
Update: Never mind. Stupid mistake. Should be easily remedied.
Update: or not... I must have some overflow somewhere. k=10 is working fine. k=35 still not...
Problem 180
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.
-
mdean
- Posts: 206
- Joined: Tue Aug 02, 2011 2:05 am
Re: Problem 180
Okay, now I'm beginning to have some serious doubts. I think I've ruled out overflow. I've tried converting each of the s(x,y,z) to decimal then adding them up and comparing that to t computed as a decimal. They match.
Really not sure what to do right now.
Update: And problem found. Apparently, I had an error for odd k.
Really not sure what to do right now.
Update: And problem found. Apparently, I had an error for odd k.
