-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathch10.html
28 lines (28 loc) · 1.54 KB
/
ch10.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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>第十章</title>
<style>
table, th, td {
border: 1px solid black;
}
</style>
</head><body style="background-image: url(picture/background.png);">
<h2>8.2 其他</h2>
<h3>特殊條件排序</h3>
<p>上一章中我們用 <algorithm> 中的 sort
函數來排序。但是它只能依數值由小到大排序。可是如果遇到特殊條件的排序,Sort 就不知道要如何去排了。</p>
<li><a href="https://zerojudge.tw/ShowProblem?problemid=d750">d750. 11321 - Sort! Sort!! and Sort!!!</a></li>
<p>這題的排序條件很詭異。</p>
<script src="https://gist.github.com/allem40306/02d0372881daf3ae849bba528bc424f4.js?file=ch08-12.cpp"></script>
<li><a href="https://zerojudge.tw/ShowProblem?problemid=d731">d731. 11039 - Building designing</a></li>
<h3>遞迴</h3>
<li><a href="http://contest.cc.ntu.edu.tw/npsc2009/finalContest/junior_final.pdf">2009 NPSC 國中組決賽 F. 風鈴</a></li>
<h3>DFS</h3>
<li><a href="https://zerojudge.tw/ShowProblem?problemid=c129">c129. Oil Deposits</a></li>
<p>本題重點在於,要用整張地圖遞迴下去,但若每次遞迴都建一張地圖絕對會吃re的</p>
<p>這題的大概做法是:</p>
<p>先從第一個開始搜,一搜到"@",就往下遞回直到沒有,答案加一,然後記得每找到ㄧ個"@",都把它換成其他字元(建議不用"#",因為DEBUG時比較
好找到錯誤。</p>
<br><br>
</body></html>