/
problem=9.html
93 lines (80 loc) · 4.63 KB
/
problem=9.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Problem 9 - Project Euler</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="pe_template_style.css">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ["$","$"], ["\\(","\\)"] ],
displayMath: [ ["$$","$$"], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
</script>
<script type="text/javascript" src="md5.min.js"></script>
<script type="text/javascript">
function check_ans(ans) {
if (md5(ans) === "24aa9820350012ff678d47cb85b639") {
alert("Correct!");
} else {
alert("Sorry, that is incorrect!");
};
};
</script>
</head>
<body>
<div id="container">
<div id="nav" class="noprint">
<ul>
<li><a href="about.html" title="About">About</a></li>
<li id="current"><a href="problems.html" title="Problems">Problems</a></li>
<li><a href="news.html" title="News">News</a></li>
<li><a href="http://forum.projecteuler.net" title="Project Euler Forum">Forum</a></li>
</ul>
<div style="text-align:right;padding:30px 10px 0 0;">
<a href="rss2_euler.xml"><img src="images/icon_rss.png" alt="RSS Feed" title="RSS Feed"></a>
</div>
</div>
<div id="logo" class="noprint">
<img src="images/pe_banner.png" alt="Project Euler .net">
</div>
<div id="content">
<div id="notification">This website is a semi-functional mirror of the original <a href="https://projecteuler.net/">Project Euler</a>. More information is available on <a href="https://github.com/wackyapples/ProjectEulerMirror/blob/gh-pages/README.md">GitHub</a>.</div>
<div style="text-align:center;" class="print"><img src="images/pe_banner.png" alt="projecteuler.net" style="border:none;"></div>
<h2>Special Pythagorean triplet</h2>
<h3>Problem 9</h3>
<div style="font-size:80%;color:#999;">Published on 25 January 2002 at 06:00 pm [Server Time]</div>
<div class="problem_content" role="problem">
<p>A Pythagorean triplet is a set of three natural numbers, <var>a</var> < <var>b</var> < <var>c</var>, for which,</p>
<div style="text-align:center;"> <var>a</var><sup>2</sup> + <var>b</var><sup>2</sup> = <var>c</var><sup>2</sup>
</div>
<p>For example, 3<sup>2</sup> + 4<sup>2</sup> = 9 + 16 = 25 = 5<sup>2</sup>.</p>
<p>There exists exactly one Pythagorean triplet for which <var>a</var> + <var>b</var> + <var>c</var> = 1000.<br>Find the product <var>abc</var>.</p>
</div>
<br>
<div style="text-align:center;" class="noprint">
Answer: <input type="text" name="answer" id="answer" style="border:1px solid #999;width:100px;">
<button onclick="check_ans(document.getElementById('answer').value);">Check</button>
</div>
<script type="text/javascript">document.getElementById('answer').focus();</script><div>Go to back to <a href="problems%3Bpage=1.html">Problems</a>
</div>
</div>
<div id="footer" class="noprint">© Project Euler</div>
<!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<Work rdf:about="">
<license rdf:resource="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/" />
<dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
</Work>
<License rdf:about="http://creativecommons.org/licenses/by-nc-sa/2.0/uk/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><prohibits rdf:resource="http://web.resource.org/cc/CommercialUse"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
</div>
<div style="height:1px;"> </div>
</body>
</html>