d236. 畢氏的定理
Tags :
Accepted rate: 2112人/ 2205人 ( 96%) [非即時]
評分方式:
Tolerant

最近更新 : 2009-04-24 17:32

Content

A Pythagorean triplet is a set of three natural numbers, a  b  c, for which,

a2 + b2 = c2
For example, 32 + 42 = 9 + 16 = 25 = 52.

There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.

即找出符合a2 + b2 = c2和a + b + c = 1000的a b c 之解.

 

Input
<無>
Output
輸出三數相乘之結果.
Sample Input #1
<無>
Sample Output #1
<無>
測資資訊:
記憶體限制: 512 MB
不公開 測資點#0 (100%): 1.0s , <1K
Hint :
Tags:
出處:
Project Euler

Status Forum 排行

ID User Problem Subject Hit Post Date
55441 yp11451009@y ... (711-19王敬皓) d236
c++解答
59 2026-07-08 17:12
17172 addii (白家宇) d236
找因數
1718 2019-03-21 19:14
55437 yp11451032@y ... (811-23吳嘉恩) d236
ans
53 2026-07-08 14:57
22415 jayw711kb@gm ... (Jay Huang) d236
1943 2020-08-31 14:31
22132 yoyokuo2007b ... (haha) d236
1694 2020-08-13 09:44