106 - Fermat vs. Pythagoras
Moderator: Board moderators
-
- Learning poster
- Posts: 93
- Joined: Sun Jan 12, 2003 3:30 pm
106 - WA .. help
Any sample input and output ???
thanks in advance
thanks in advance
-
- Learning poster
- Posts: 93
- Joined: Sun Jan 12, 2003 3:30 pm
Code: Select all
0 1
1 4
16 27
158 205
1593 1669
15919 14844
159139 133926
-
- Learning poster
- Posts: 93
- Joined: Sun Jan 12, 2003 3:30 pm
Problem Fermat vs. Pythagoras(106) - the second number
Could someone help me.
In the problem [b]Fermat vs. Pythagoras(106) [/b]I can find all triples but how can I find the second number (count of number whitch are not in triples) ???
I can't even imagine anything!!!
In the problem [b]Fermat vs. Pythagoras(106) [/b]I can find all triples but how can I find the second number (count of number whitch are not in triples) ???
I can't even imagine anything!!!
Problem 106 Fermat vs Phytagoras, help me
i want to know, what is the meaning of the first output number ?
i.e :
input = 10
output = 1 4
input = 100
output = 16 27
Thank's ![/pascal]
i.e :
input = 10
output = 1 4
input = 100
output = 16 27
Thank's ![/pascal]
-
- Learning poster
- Posts: 93
- Joined: Sun Jan 12, 2003 3:30 pm
106 - Wrong Examples?
I am working on problem 106, the program seems to work correctly, except my output is different to the sample output.
input:
10
25
100
my output:
1 4
4 9
36 27
sample output:
1 4
4 9
16 27
I tailored the program to print out all the hits to see why I counted 36 and the sample counted only 16. After looking through all of them, I could see no valid reason, does anyone have any insight?
input:
10
25
100
my output:
1 4
4 9
36 27
sample output:
1 4
4 9
16 27
I tailored the program to print out all the hits to see why I counted 36 and the sample counted only 16. After looking through all of them, I could see no valid reason, does anyone have any insight?
(pow((double)ii, 2.0) --> Is there a better way?
I am wanting to square some numbers (for problem 106).
ie
5^2
However the only way that I can see to do it is to use the pow function.
I tried ii^2, however errors where returned.
Does anyone know a better (faster) way?
ie
5^2
However the only way that I can see to do it is to use the pow function.
I tried ii^2, however errors where returned.
Does anyone know a better (faster) way?