## Search found 6 matches

Fri Sep 24, 2004 6:01 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11234

### Help Pleeease... . WA 106 -- Fermat vs. Pythagoras

Hello guys ... my code for this program solves it correctly.. including the 1000000 but the online judge is insisting on giving me a wrong answer... I guess there is something wrong with how to end the program.. like the eof thingy.. so can anybody check it for me.. show me the way to do it please.....
Fri Sep 24, 2004 5:39 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11234
I guess. u have a mistake in defining the limits of s....

variable under should be always 1
and variable upper should be min(sqrt(N-r*r), r-1)

Try those modifications .. I hope this helps
Thu Mar 04, 2004 1:52 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 76753

### 10038 Jolly Jumper Runtime Error help

Hey The online judge gives this message.... Your program has died with signal 6 (SIGABRT). Meaning: Abort signal from abort() Before crash, it ran during 0.000 seconds. I don't know what does that mean here is my code [cpp]#include <iostream> #include <cstdlib> using namespace std; int n; void fillP...
Thu Aug 21, 2003 10:08 am
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11234
I'm sorry I didn't understand ur question... can u explain it again....
Tue Aug 19, 2003 10:31 pm
Forum: Volume 1 (100-199)
Topic: 106 - Fermat vs. Pythagoras
Replies: 138
Views: 11234
Hi guys ... I've done the Fermat vs. Pythogoras problem using the following algorithm : I found that for a any triple x^2+y^2 = z^2 there applies the following... x^2 = z + (z-1) + (z-1) + (z-2)......+(y+1) + (y); for example for the triple (3, 4, 5); 3^2 = 5 + 4; for the triple (7, 24, 25); 49 = 25...
Fri Aug 15, 2003 9:16 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 35802

### 101 Runtime Error ... help

Plz I've submit my program on the blocks problem and I'm getting this message....
Your program has died with signal 11 (SIGSEGV). Meaning:

Invalid memory reference

Before crash, it ran during 0.006 seconds.
Can any body help me?????