ProjectEuler is renamed to project_euler
This commit is contained in:
106
project_euler/pe/p185.html
Normal file
106
project_euler/pe/p185.html
Normal file
@@ -0,0 +1,106 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="author" content="Colin Hughes" />
|
||||
<meta name="description" content="A website dedicated to the fascinating world of mathematics and programming" />
|
||||
<meta name="keywords" content="programming,mathematics,problems,puzzles" />
|
||||
|
||||
<title>Problem 185 - Project Euler</title>
|
||||
<link rel="shortcut icon" href="http://projecteuler.net/favicon.ico" />
|
||||
<link rel="stylesheet" type="text/css" href="style_main.css" />
|
||||
<link rel="stylesheet" type="text/css" href="style_light.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="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
|
||||
<div id="nav" class="noprint">
|
||||
<ul>
|
||||
<li><a href="about" title="About" accesskey="h">About</a></li>
|
||||
<li><a href="register" title="Register" accesskey="1">Register</a></li>
|
||||
<li id="current"><a href="problems" title="Problems" accesskey="2">Problems</a></li>
|
||||
<li><a href="login" title="Login" accesskey="3">Login</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="info_panel"><a href="rss2_euler.xml"><img src="images/icon_rss.png" alt="RSS Feed" title="RSS Feed" /></a><a href="secure=90c7e"><img src="images/icon_lock.png" alt="Use secure connection" title="Use secure connection" /></a></div>
|
||||
|
||||
<div id="logo" class="noprint">
|
||||
<img src="images/pe_banner_light.png" alt="Project Euler .net" />
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<div style="text-align:center;" class="print"><img src="images/pe_banner.png" alt="projecteuler.net" style="border:none;" /></div>
|
||||
<h2>Number Mind</h2><div class="info" style="cursor:help;width:200px;margin-bottom:10px;"><h3>Problem 185</h3><span style="width:300px;color:#666;">Published on Saturday, 8th March 2008, 01:00 am; Solved by 1610</span></div>
|
||||
<div class="problem_content" role="problem">
|
||||
<p>The game Number Mind is a variant of the well known game Master Mind.</p>
|
||||
<p>Instead of coloured pegs, you have to guess a secret sequence of digits. After each guess you're only told in how many places you've guessed the correct digit. So, if the sequence was 1234 and you guessed 2036, you'd be told that you have one correct digit; however, you would NOT be told that you also have another digit in the wrong place.</p>
|
||||
|
||||
<p>For instance, given the following guesses for a 5-digit secret sequence,</p>
|
||||
<p style="margin-left:50px;">90342 ;2 correct<br />
|
||||
70794 ;0 correct<br />
|
||||
39458 ;2 correct<br />
|
||||
34109 ;1 correct<br />
|
||||
51545 ;2 correct<br />
|
||||
12531 ;1 correct</p>
|
||||
<p>The correct sequence 39542 is unique.</p>
|
||||
|
||||
<p>Based on the following guesses,</p>
|
||||
|
||||
<p style="margin-left:50px;">5616185650518293 ;2 correct<br />
|
||||
3847439647293047 ;1 correct<br />
|
||||
5855462940810587 ;3 correct<br />
|
||||
9742855507068353 ;3 correct<br />
|
||||
4296849643607543 ;3 correct<br />
|
||||
3174248439465858 ;1 correct<br />
|
||||
4513559094146117 ;2 correct<br />
|
||||
7890971548908067 ;3 correct<br />
|
||||
8157356344118483 ;1 correct<br />
|
||||
2615250744386899 ;2 correct<br />
|
||||
8690095851526254 ;3 correct<br />
|
||||
6375711915077050 ;1 correct<br />
|
||||
6913859173121360 ;1 correct<br />
|
||||
6442889055042768 ;2 correct<br />
|
||||
2321386104303845 ;0 correct<br />
|
||||
2326509471271448 ;2 correct<br />
|
||||
5251583379644322 ;2 correct<br />
|
||||
1748270476758276 ;3 correct<br />
|
||||
4895722652190306 ;1 correct<br />
|
||||
3041631117224635 ;3 correct<br />
|
||||
1841236454324589 ;3 correct<br />
|
||||
2659862637316867 ;2 correct</p>
|
||||
|
||||
<p>Find the unique 16-digit secret sequence.</p>
|
||||
</div><br />
|
||||
<br /></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="footer" class="noprint">
|
||||
<a href="copyright">Project Euler Copyright Information</a>
|
||||
<!--/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>
|
||||
<div style="height:1px;"> </div></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user