Search found 4 matches

by Callosciurus
Mon Jul 25, 2005 5:03 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 26089

Dear Sedefcho, dear mf,

thanks a lot for your help. Sedefcho, you were perfectly right, the algorithm was ok, I almost don't dare to tell you that I missed to initialize the last field of my array :(. I submitted both versions we discussed for the cases N=3,4 and both were accepted.
by Callosciurus
Fri Jul 22, 2005 5:56 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 26089

I am desperate! I submitted this problem so many times now, no matter whether I output 0 3 or 0 2 for this query, they all give WA. All queries I found on the board work fine. The only thing that is not entirely clear to me is what you pointed out , mf (the problem is clear, the correct way to solve...
by Callosciurus
Fri Jul 22, 2005 3:24 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 26089

Hi Sedefcho, thanks for your immediate reply. IMHO the inconsistency remains: let's consider N=3. Using your definition, we know that 3 is element of the triple (3,4,5), but since z > N holds, we do not count 3. Since (3,4,5) is the smallest existing triple N = 3 cannot be part of any other triple w...
by Callosciurus
Tue Jul 19, 2005 7:12 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 26089

test data output

Hi Sedefcho, I do not understand the output of the acc program above. Please help me to understand it! For an input 1 2 3 4 5 6 7 the output is 0 1 0 2 0 2 0 2 1 2 1 3 1 4 My problem concerns the second number of the output. We know that pythagorian triples 3,4,5 and 6,8,10 exist. The second value o...

Go to advanced search