Problem 009

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
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.

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


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: PROBLEM 9

Post by jaap »

Please remove the code and the answer from your post.
You have found the triple, so if you input the number the problem asks for it should be accepted.
craigcussler
Posts: 4
Joined: Sun Nov 07, 2010 5:26 pm

Re: PROBLEM 9

Post by craigcussler »

thanks, I've solved the problem.
I've removed the code and the answer, I'm sorry but i didn't know I couldn't write it .
User avatar
hk
Administrator
Posts: 12832
Joined: Sun Mar 26, 2006 10:34 am
Location: Haren, Netherlands

Re: PROBLEM 9

Post by hk »

Thanks for reporting jaap.
@craigcussler:
Please read the forum rules and the topics mentioned there.

In particular: don't start a new topic for a problem if there exists one already, Topic subject should be Problem xxx, don't post any spoilers or sourcecode. You've violated all three of them.
Image
War ruins the life and health of untold numbers of innocent children.
elizool99
Posts: 2
Joined: Mon Nov 29, 2010 6:55 pm

Problem 009

Post by elizool99 »

I chcecked it and it seems to work fine it takes 1 as A then B is a + 1 so a and b are all the combinations that can be then c equals to them and there is a check with if SQRT of c
Last edited by elizool99 on Mon Nov 29, 2010 7:33 pm, edited 1 time in total.
wrongrook
Posts: 745
Joined: Sat Oct 17, 2009 10:39 pm

Re: Problem 9, Whats wrong with my code?

Post by wrongrook »

Your test for a+b+c==1000 should be inside the loop over b.

(By the way, you should probably edit your post to remove the code as you aren't meant to post code fragments here in order to avoid spoiling the problem for others)
elizool99
Posts: 2
Joined: Mon Nov 29, 2010 6:55 pm

Re: Problem 9, Whats wrong with my code?

Post by elizool99 »

Yea you was right thank you.
Darren_Zeng
Posts: 5
Joined: Wed Feb 16, 2011 9:32 am

Re: Problem 009

Post by Darren_Zeng »

I get the answer of this problem,which are a=_,b=_,c=_. But I don't know how to submit this answer. when I submited the answer like _*_*_,received a wrong answer also.
Who can I tell me how to do? Thanks!
Last edited by euler on Wed Feb 16, 2011 1:38 pm, edited 2 times in total.
Reason: To remove spoiler
User avatar
Jochen_P
Posts: 55
Joined: Mon Oct 05, 2009 10:47 am
Location: Stuttgart, Germany

Re: Problem 009

Post by Jochen_P »

@Darren,

try to submit the result of a*b*c as answer..
Oh, and please remove the values of a,b and c from your post as these are the correct ones.. don't spoil the fun for others..
Image
Darren_Zeng
Posts: 5
Joined: Wed Feb 16, 2011 9:32 am

Re: Problem 009

Post by Darren_Zeng »

Jochen_P wrote:@Darren,

try to submit the result of a*b*c as answer..
Oh, and please remove the values of a,b and c from your post as these are the correct ones.. don't spoil the fun for others..
I had submited the result of a*b*c as answer,but it's also wrong.Please tell me why? Thanks.
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: Problem 009

Post by jaap »

Darren_Zeng wrote:
Jochen_P wrote:@Darren,

try to submit the result of a*b*c as answer..
Oh, and please remove the values of a,b and c from your post as these are the correct ones.. don't spoil the fun for others..
I had submited the result of a*b*c as answer,but it's also wrong.Please tell me why? Thanks.
You need to type in the product of them, the three numbers multiplied together, a times b times c.
Darren_Zeng
Posts: 5
Joined: Wed Feb 16, 2011 9:32 am

Re: Problem 009

Post by Darren_Zeng »

jaap wrote:
Darren_Zeng wrote:
Jochen_P wrote:@Darren,

try to submit the result of a*b*c as answer..
Oh, and please remove the values of a,b and c from your post as these are the correct ones.. don't spoil the fun for others..
I had submited the result of a*b*c as answer,but it's also wrong.Please tell me why? Thanks.
You need to type in the product of them, the three numbers multiplied together, a times b times c.
I know it. Thank you very much!
swartzism
Posts: 2
Joined: Tue Apr 05, 2011 3:17 pm

Re: Problem 009

Post by swartzism »

My sum is up to over 35 billion and still running. Is that too big?
Hibernatus34
Posts: 31
Joined: Mon May 16, 2011 7:03 am

Re: Problem 009

Post by Hibernatus34 »

Edit : Er, wait a minute... what sum are you talking about ?
Image Joined PE in May 2011
PMart
Posts: 2
Joined: Fri Aug 09, 2013 4:46 pm

Question 9

Post by PMart »

Hi, I just started yesterday on this site and am not sure how to enter the answer for question 9.

I tried a+b+c
a + b + c
a b c
a < b < c

I'm pretty sure I have the right answer, however, I get an incorrect everytime.

Can anyone illuminate me on the pattern to use.

Regards

Pierre Martin
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: Question 9

Post by jaap »

The last sentence of the problem statement says:
Find the product abc.
PMart
Posts: 2
Joined: Fri Aug 09, 2013 4:46 pm

Question 9 spoiler

Post by PMart »

Hi, when I posted for help on question 9, I had missed the last part on this question. However, I was careful to only use variables referenced in the question and not numbers. My intent was not to spoil the question and I will be more diligent in future posts.

Regards

PMart
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 009

Post by rayfil »

@Pierre

We realize you are new to this forum. For your info, problem numbers under 100 are padded with leading 0's to make them 3-digit numbers for several reasons. You would have found the answer to your question by looking in the proper topic. Your posts have thus been transferred where they belong.
When you assume something, you risk being wrong half the time.
pcworx
Posts: 6
Joined: Wed Nov 27, 2013 3:52 pm

Re: Problem 009

Post by pcworx »

Hope I am not giving too much away here...but in my algorithm I should check for a^2 + b^2 = c^2 and if a + b + c is == 1000 ?

Thanks,
Dan
LarryBlake
Posts: 100
Joined: Sat Aug 29, 2009 8:49 pm

Re: Problem 009

Post by LarryBlake »

Yes, that is correct.
Image
pimspelier
Posts: 41
Joined: Tue Jan 21, 2014 2:06 pm
Location: The Netherlands

Re: Problem 009

Post by pimspelier »

Should the triplet be coprime?
Image
Post Reply