{"id":9299,"date":"2016-06-07T23:30:03","date_gmt":"2016-06-08T03:30:03","guid":{"rendered":"http:\/\/cscircles.cemc.uwaterloo.ca\/?page_id=9299"},"modified":"2017-06-28T18:40:14","modified_gmt":"2017-06-28T22:40:14","slug":"zh-11c","status":"publish","type":"page","link":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/zh-11c\/","title":{"rendered":"11C: \u51e0\u4f55"},"content":{"rendered":"<!-- Please retain this notice and add more notes if you create a new version.<br \/>\nOriginal lesson author: David Pritchard, daveagp@gmail.com, http:\/\/cscircles.ca<br \/>\nLicense: http:\/\/creativecommons.org\/licenses\/by-nc-sa\/3.0\/-->\n<p><em>\u7b2c11\u8bfe\u6709\u4e09\u4e2a\u90e8\u5206A\u3001B\u3001C\uff0c\u5b66\u4e60\u987a\u5e8f\u4e0d\u5206\u5148\u540e\u3002<\/em><\/p>\n<p>\u5728\u8fd9\u4e2a\u7ec3\u4e60\u4e2d\uff0c\u6211\u4eec\u4f1a\u521b\u5efa4\u4e2a\u51fd\u6570\u7528\u6765\u6267\u884c\u51e0\u4f55\u8fd0\u7b97\uff1a<\/p>\n<ul>\n<li>\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u76f4\u89d2\u4e09\u89d2\u5f62\u659c\u8fb9\u7684\u957f\u5ea6\uff0c<\/li>\n<li>\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u76f4\u89d2\u4e09\u89d2\u5f62\u7684\u5468\u957f\uff0c<\/li>\n<li>\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u4e8c\u7ef4\u4e2d\u4e24\u70b9\u95f4\u7684\u8ddd\u79bb\uff0c<\/li>\n<li>\u4ee5\u53ca\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u4e00\u4e2a\u4efb\u610f\u4e09\u89d2\u5f62\u7684\u5468\u957f\u3002<\/li>\n<\/ul>\n<h2>\u659c\u8fb9<\/h2>\n<p><img decoding=\"async\" class=\"alignright\" title=\"hypotenuse\" src=\"..\/wp-content\/lesson_files\/img\/11C\/hypotenuse-zh.png\" \/>\u4e00\u4e2a<em>\u76f4\u89d2\u4e09\u89d2\u5f62<\/em>\u5728\u53f3\u624b\u8fb9\u7684\u56fe\u7247\u4e2d\u663e\u793a\u3002\u6839\u636e\u5b9a\u4e49, \u76f4\u89d2\u4e09\u89d2\u5f62\u4e2d\u7684\u4e00\u4e2a\u89d2\u7b49\u4e8e90\u5ea6\uff08\u4e00\u4e2a<em>\u76f4\u89d2<\/em>\uff09\u3002\u5b83\u6709\u4e09\u6761\u8fb9\u3002\u76f4\u89d2\u5bf9\u9762\u7684\u90a3\u6761\u8fb9\u6709\u4e00\u4e2a\u7279\u6b8a\u7684\u540d\u5b57\uff1a<em>\u659c\u8fb9<\/em>\u3002<\/p>\n<p>\u5982\u56fe\u4e2d\u6240\u793a\uff0c\u8ba9<em>a<\/em>\u548c<em>b<\/em>\u4f5c\u4e3a\u76f4\u89d2\u76f8\u90bb\u4e24\u8fb9\u7684\u957f\u5ea6, \u8ba9<em>c<\/em>\u4f5c\u4e3a\u659c\u8fb9\u7684\u957f\u5ea6\u3002\u6c9f\u8c37\u5b9a\u7406\u544a\u8bc9\u6211\u4eec<\/p>\n<p style=\"text-align: center;\"><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle%7Ba%5E2%2Bb%5E2%3Dc%5E2%7D&#038;bg=T&#038;fg=000000&#038;s=2' alt='\\displaystyle{a^2+b^2=c^2}' title='\\displaystyle{a^2+b^2=c^2}' class='latex' \/><\/p>\n<p>\u5728\u7b2c\u4e00\u4e2a\u95ee\u9898\u4e2d\uff0c\u4f60\u7684\u4efb\u52a1\u662f\u5c06\u8fd9\u4e2a\u5b9a\u7406\u8f6c\u6362\u6210\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u7684<em>a<\/em>\u548c<em>b<\/em>\u5c06\u4f1a\u88ab\u544a\u77e5\uff0c\u4f60\u9700\u8981\u7528\u4ed6\u4eec\u6765\u8ba1\u7b97\u659c\u8fb9\u7684\u957f\u5ea6\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform0\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox0'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u659c\u8fb9<\/span><\/div>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>hypotenuse(a, b)<\/code>\uff0c\u5b83\u4f1a\u8fd4\u8fd8\u659c\u8fb9\u7684\u957f\u5ea6<em>c<\/em>, \u5982\u679c\u53e6\u5916\u4e24\u8fb9\u7684\u957f\u5ea6\u4e3a <em>a<\/em>\u548c<em>b<\/em>\u3002<a class=\"hintlink\"  id=\"hintlink1\">\u63d0\u793a<\/a><div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode0' id='usercode0'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory0' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit0' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(0)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(0,'Y')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(0,'11c.hypotenuse')\" ><\/td>\n<\/tr><\/table><select id='pbSelect0' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(0);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse0\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"0\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"58a8505f3750038968d2e77db2432475\"\/>\n<div id='pbresults0' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(0);});document.getElementById(\"submit0\").value = \"Run program\";document.getElementById(\"inputInUse0\").value = \"N\";<\/script>\n<\/p>\n<h2>\u5468\u957f<\/h2>\n<p>\u4e09\u89d2\u5f62\u7684<em>\u5468\u957f<\/em>\u662f\u5b83\u7684\u4e09\u8fb9\u4e4b\u548c\u3002\u6240\u4ee5\u5728\u4e0a\u56fe\u4e2d, \u5468\u957f\u662f<em>a+b+c<\/em>\u3002<strong>\u4f60\u7684\u7a0b\u5e8f\u5e94\u8be5\u5047\u8bbe<\/strong><code>hypotenuse<\/code>\u51fd\u6570\u5df2\u7ecf\u88ab\u5b9a\u4e49\u4e86 (\u65e0\u987b\u5c06\u5b83\u4ece\u7b2c\u4e00\u4e2a\u6846\u4e2d\u590d\u5236\u4e0b\u6765)\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform2\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox2'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u76f4\u89d2\u4e09\u89d2\u5f62<\/span><\/div>\u4f7f\u7528<code>hypotenuse(a, b)<\/code>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>rightTrianglePerimeter(a, b)<\/code>\uff0c\u7ed9\u4e88\u975e\u659c\u8fb9<em>a<\/em>\u548c<em>b<\/em>\uff0c\u4f7f\u5176\u8fd4\u8fd8\u4e00\u4e2a\u76f4\u89d2\u4e09\u89d2\u5f62\u7684\u5468\u957f\u3002<div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode2' id='usercode2'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory2' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit2' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(2)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(2,'Y')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(2,'11c.rightperimeter')\" ><\/td>\n<\/tr><\/table><select id='pbSelect2' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(2);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse2\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"2\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"0b522ed58412fc0eaf2d093c564a3ebe\"\/>\n<div id='pbresults2' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(2);});document.getElementById(\"submit2\").value = \"Run program\";document.getElementById(\"inputInUse2\").value = \"N\";<\/script>\n<\/p>\n<h2>\u4e8c\u7ef4\u4e2d\u7684\u8ddd\u79bb<\/h2>\n<p>\u5728\u8bb2\u5230\u4e8c\u7ef4\u4e2d\u7684\u70b9\u65f6, \u6211\u4eec\u4f1a\u4f7f\u7528\u4e24\u4e2a\u5750\u6807\u6765\u5b9a\u4e49\u4ed6\u4eec\uff08<a href=\"http:\/\/en.wikipedia.org\/wiki\/Cartesian_coordinate_system\" target=\"_blank\">\u7b1b\u5361\u5c14\u5750\u6807<\/a>\uff09\uff0c<em>x<\/em>\u5750\u6807\u548c<em>y<\/em>\u5750\u6807\u3002\u6211\u4eec\u9700\u8981\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u7684\u8f93\u5165\u5c06\u662f\u4e00\u5bf9\u70b9\uff0c\u5b83\u7684\u8f93\u51fa\u5c06\u662f\u8fd9\u4e24\u70b9\u95f4\u7684\u8ddd\u79bb\u3002<code>hypotenuse<\/code>\u8fd9\u4e2a\u51fd\u6570\u5c06\u4f1a\u5e2e\u52a9\u6211\u4eec\u5b8c\u6210\u8fd9\u9879\u4efb\u52a1\uff01<\/p>\n<p>\u8be6\u7ec6\u6765\u8bf4, \u5047\u8bbe\u4e00\u4e2a\u70b9\u7684\u5750\u6807\u4e3a(x1, y1) \uff0c\u5176\u4e2dx1\u548cy1\u90fd\u4e3a\u5b9e\u6570\u3002\u540c\u65f6\u5047\u8bbe\u53e6\u4e00\u4e2a\u70b9\u7684\u5750\u6807\u4e3a\uff08x2, y2\uff09\u3002\u8fd9\u91cc\u7684\u5173\u952e\u70b9\u662f\u753b\u51fa\u4e00\u4e2a\u5982\u4e0b\u56fe\u6240\u793a\u7684\u76f4\u89d2\u4e09\u89d2\u5f62\uff1a\u659c\u8fb9\u4ece(x1, y1)\u5f00\u59cb\u5230(x2, y2)\u7ed3\u675f\uff0c\u6240\u4ee5\u5b83\u7684\u957f\u5ea6\u7b49\u4e8e\u4e24\u70b9\u95f4\u7684\u8ddd\u79bb\u3002<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"aligncenter\" src=\"..\/wp-content\/lesson_files\/img\/11C\/distance2d-zh.png\" \/><\/p>\n<p>\u8981\u60f3\u8ba1\u7b97\u659c\u8fb9\u7684\u957f\u5ea6\uff0c\u6211\u4eec\u9700\u8981\u6c42\u51fa\u8fd9\u4e2a\u4e09\u89d2\u5f62\u53e6\u5916\u4e24\u8fb9\u7684\u957f\u5ea6\u3002\u8fd9\u4e2a\u4efb\u52a1\u53ef\u4ee5\u7528\u5750\u6807\u7684\u5b9a\u4e49\u6765\u5b8c\u6210 (\u8bf7\u770b\u4f8b\u56fe): \u6a2a\u5411\u8ddd\u79bb\u662f <em>a<\/em> = x1-x2 \uff0c\u7eb5\u5411\u8ddd\u79bb\u662f <em>b<\/em> = y1-y2\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform3\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox3'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u4e8c\u7ef4\u8ddd\u79bb<\/span><\/div>\u5047\u8bbe<code>hypotenuse(a, b)<\/code>\u51fd\u6570\u5df2\u7ecf\u88ab\u5b9a\u4e49\u597d\u4e86\u3002\u4f7f\u7528\u5b83\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>distance2D(x1, y1, x2, y2)<\/code> \uff0c\u5b83\u4f1a\u8ba1\u7b97\u70b9(x1, y1)\u548c\u70b9(x2, y2)\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002<div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode3' id='usercode3'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory3' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit3' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(3)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(3,'Y')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(3,'11c.distance')\" ><\/td>\n<\/tr><\/table><select id='pbSelect3' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(3);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse3\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"3\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"911af746adc1a123b049c94593788969\"\/>\n<div id='pbresults3' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(3);});document.getElementById(\"submit3\").value = \"Run program\";document.getElementById(\"inputInUse3\").value = \"N\";<\/script>\n<\/p>\n<h2>\u4efb\u610f\u4e09\u89d2\u5f62\u7684\u5468\u957f<\/h2>\n<p>\u4e0b\u9762\u5c06\u662f\u8fd9\u8282\u8bfe\u7684\u6700\u540e\u4e00\u4e2a\u7ec3\u4e60\u3002\u8bb0\u4f4f\u4e09\u89d2\u5f62\u5468\u957f\u662f\u4e09\u6761\u8fb9\u957f\u5ea6\u7684\u603b\u548c\uff1b\u540c\u65f6\u6ce8\u610f\u6bcf\u8fb9\u7684\u957f\u5ea6\u5c31\u662f\u4e09\u89d2\u5f62\u4e2d\u4e24\u70b9\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002<\/p>\n<p><form class=\"pbform\" action=\"#\" id=\"pbform4\" method=\"POST\">\n<div class='pybox modeNeutral ' id='pybox4'>\n<img title='You have not yet completed this problem.' src='https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-content\/plugins\/pybox\/files\/icon.png' class='pycheck'\/><div class=\"heading\"><span class='type'>Coding Exercise: <\/span><span class='title'>\u5b8c\u6210\u5468\u957f<\/span><\/div>\u5047\u8bbe<code>distance2D(x1, y1, x2, y2)<\/code>\u51fd\u6570\u5df2\u7ecf\u88ab\u5b9a\u4e49\u597d\u4e86\u3002\u4f7f\u7528\u5b83\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>trianglePerimeter(xA, yA, xB, yB, xC, yC)<\/code>\u8ba1\u7b97\u4e00\u4e2a\u4e09\u89d2\u5f62\u7684\u5468\u957f\uff0c\u8fd9\u4e2a\u4e09\u89d2\u5f62\u7684\u4e09\u4e2a\u70b9\u5206\u522b\u662f(xA, yA), (xB, yB) \u548c (xC, yC)\u3002<div class=\"helpOuter\" style=\"display: none;\"><div class=\"helpInner\"><div style=\"text-align: center\">You need to create an account and log in to ask a question.<\/div><\/div><\/div><div class='pyboxTextwrap pyboxCodewrap RW resizy'  style='height: 526px;'><textarea wrap='off' name='usercode4' id='usercode4'  cols=10 rows=20   class='pyboxCode RW'>\n<\/textarea><\/div>\n<div id='pbhistory4' class='flexcontain' style='display:none;'><\/div>\n<div class='pyboxbuttons'><table><tr>\n<td><input type='submit' name='submit' id='submit4' value=' '\/><\/td>\n<td><input type='button' name='consolecopy' value=\"Open in console\" onclick=\"pbConsoleCopy(4)\" ><\/td>\n<td><input type='button' name='visualize' value=\"Visualize\" onclick=\"pbVisualize(4,'Y')\" ><\/td>\n<td><input type='button' name='history' value=\"History\" onclick=\"historyClick(4,'11c.perimeter')\" ><\/td>\n<\/tr><\/table><select id='pbSelect4' class='selectmore'><option name='more'>More actions...<\/option>\n<option name='help' data-pbonclick=\"helpClick(4);\" >Help<\/option>\n<\/select><\/div>\n<input type=\"hidden\" name=\"lang\" value=\"\"\/><input type=\"hidden\" id=\"inputInUse4\" name=\"inputInUse\" value=\"Y\"\/>\n<input type=\"hidden\" name=\"pyId\" value=\"4\"\/>\n<input type=\"hidden\" name=\"hash\" value=\"b7f5371227c80c1447d026375cc33916\"\/>\n<div id='pbresults4' class='pbresults avoidline'><\/div>\n<\/div>\n<\/form>\n<script type='text\/javascript'>jQuery(function(){pbToggleCodeMirror(4);});document.getElementById(\"submit4\").value = \"Run program\";document.getElementById(\"inputInUse4\").value = \"N\";<\/script>\n<\/p>\n<p>\u4f60\u73b0\u5728\u5df2\u7ecf\u51c6\u5907\u597d\u7ee7\u7eed\u4e0b\u9762\u7684\u8bfe\u7a0b\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c11\u8bfe\u6709\u4e09\u4e2a\u90e8\u5206A\u3001B\u3001C\uff0c\u5b66\u4e60\u987a\u5e8f\u4e0d\u5206\u5148\u540e\u3002 \u5728\u8fd9\u4e2a\u7ec3\u4e60\u4e2d\uff0c\u6211\u4eec\u4f1a\u521b\u5efa4\u4e2a\u51fd\u6570\u7528\u6765\u6267\u884c\u51e0\u4f55\u8fd0\u7b97\uff1a \u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u76f4\u89d2\u4e09\u89d2\u5f62\u659c\u8fb9\u7684\u957f\u5ea6\uff0c \u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u76f4\u89d2\u4e09\u89d2\u5f62\u7684\u5468\u957f\uff0c \u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u4e8c\u7ef4\u4e2d\u4e24\u70b9\u95f4\u7684\u8ddd\u79bb\uff0c \u4ee5\u53ca\u4e00\u4e2a\u51fd\u6570\u7528\u6765\u8ba1\u7b97\u4e00\u4e2a\u4efb\u610f\u4e09\u89d2\u5f62\u7684\u5468\u957f\u3002 \u659c\u8fb9 \u4e00\u4e2a\u76f4\u89d2\u4e09\u89d2\u5f62\u5728\u53f3\u624b\u8fb9\u7684\u56fe\u7247\u4e2d\u663e\u793a\u3002\u6839\u636e\u5b9a\u4e49, \u76f4\u89d2\u4e09\u89d2\u5f62\u4e2d\u7684\u4e00\u4e2a\u89d2\u7b49\u4e8e90\u5ea6\uff08\u4e00\u4e2a\u76f4\u89d2\uff09\u3002\u5b83\u6709\u4e09\u6761\u8fb9\u3002\u76f4\u89d2\u5bf9\u9762\u7684\u90a3\u6761\u8fb9\u6709\u4e00\u4e2a\u7279\u6b8a\u7684\u540d\u5b57\uff1a\u659c\u8fb9\u3002 \u5982\u56fe\u4e2d\u6240\u793a\uff0c\u8ba9a\u548cb\u4f5c\u4e3a\u76f4\u89d2\u76f8\u90bb\u4e24\u8fb9\u7684\u957f\u5ea6, \u8ba9c\u4f5c\u4e3a\u659c\u8fb9\u7684\u957f\u5ea6\u3002\u6c9f\u8c37\u5b9a\u7406\u544a\u8bc9\u6211\u4eec \u5728\u7b2c\u4e00\u4e2a\u95ee\u9898\u4e2d\uff0c\u4f60\u7684\u4efb\u52a1\u662f\u5c06\u8fd9\u4e2a\u5b9a\u7406\u8f6c\u6362\u6210\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u7684a\u548cb\u5c06\u4f1a\u88ab\u544a\u77e5\uff0c\u4f60\u9700\u8981\u7528\u4ed6\u4eec\u6765\u8ba1\u7b97\u659c\u8fb9\u7684\u957f\u5ea6\u3002 Coding Exercise: \u659c\u8fb9\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570hypotenuse(a, b)\uff0c\u5b83\u4f1a\u8fd4\u8fd8\u659c\u8fb9\u7684\u957f\u5ea6c, \u5982\u679c\u53e6\u5916\u4e24\u8fb9\u7684\u957f\u5ea6\u4e3a a\u548cb\u3002\u63d0\u793aYou need to create an account and log in to ask a question. More actions... Help \u5468\u957f \u4e09\u89d2\u5f62\u7684\u5468\u957f\u662f\u5b83\u7684\u4e09\u8fb9\u4e4b\u548c\u3002\u6240\u4ee5\u5728\u4e0a\u56fe\u4e2d, \u5468\u957f\u662fa+b+c\u3002\u4f60\u7684\u7a0b\u5e8f\u5e94\u8be5\u5047\u8bbehypotenuse\u51fd\u6570\u5df2\u7ecf\u88ab\u5b9a\u4e49\u4e86 (\u65e0\u987b\u5c06\u5b83\u4ece\u7b2c\u4e00\u4e2a\u6846\u4e2d\u590d\u5236\u4e0b\u6765)\u3002 Coding Exercise: \u76f4\u89d2\u4e09\u89d2\u5f62\u4f7f\u7528hypotenuse(a, &hellip; <a href=\"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/zh-11c\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-9299","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/comments?post=9299"}],"version-history":[{"count":8,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9299\/revisions"}],"predecessor-version":[{"id":10227,"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/pages\/9299\/revisions\/10227"}],"wp:attachment":[{"href":"https:\/\/cscircles.cemc.uwaterloo.ca\/dev\/wp-json\/wp\/v2\/media?parent=9299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}