給出自殺順序。不少數據結構初學書都會以這個問題爲習題考驗讀者對線性表的掌握。比較常見的解法是把所有存活的人組織成一個循環鏈表,這樣做時間複雜度是O(n*m)的。另外可以使用order
statistic
tree(支持查詢第k小的元素以及詢問元素的排名)優化到O(n log n)。另外有篇1983年的論文An
O(n log m) Algorithm for the Josephus
Problem,但可惜我沒找到下載鏈接。
The "Bcc:" field (where the "Bcc" means "Blind Carbon Copy") contains addresses of recipients of the message whose addresses are not to be revealed to other recipients of the message. There are three ways in which the "Bcc:" field is used. In the first case, when a message containing a "Bcc:" field is prepared to be sent, the "Bcc:" line is removed even though all of the recipients (including those specified in the "Bcc:" field) are sent a copy of the message. In the second case, recipients specified in the "To:" and "Cc:" lines each are sent a copy of the message with the "Bcc:" line removed as above, but the recipients on the "Bcc:" line get a separate copy of the message containing a "Bcc:" line. (When there are multiple recipient addresses in the "Bcc:" field, some implementations actually send a separate copy of the message to each recipient with a "Bcc:" containing only the address of that particular recipient.) Finally, since a "Bcc:" field may contain no addresses, a "Bcc:" field can be sent without any addresses indicating to the recipients that blind copies were sent to someone. Which method to use with "Bcc:" fields is implementation dependent, but refer to the "Security Considerations" section of this document for a discussion of each.
This function will go to the next line of non-quoted text which comes after a line of quoted text in the internal pager.
以及用於切換引文是否顯示的:
1 2 3 4 5 6 7
<toggle-quoted> (default: T)
The pager uses the $quote_regexp variable to detect quoted text when displaying the body of the message. This function toggles the display of the quoted material in the message. It is particularly useful when being interested in just the response and there is a large amount of quoted text in the way.
Reply-To
這個郵件首部爲用戶回覆郵件時提供建議,設定新郵件的To:首部。
Thread
References
In-Reply-To
format=flowed
Mail-Followup-To
回覆郵件時如果選擇了follow up(或者說reply to
all)的方式,那麼收件人會被填爲Mail-Followup-To設定的地址。
避免發件人如果訂閱了該郵件列表的話收到兩封相同的郵件。
昨天逛微博時無疑發現今天居然就是第二屆青少年開發者大會了,之後又看到果殼網也有介紹,背景圖片第一眼看去就是郭老師,再一眼劉嘯宇,感覺奇怪……推測一下原來第三個人似乎是我,想起來第一屆大會時的情形了……恰好ppwwyyxx和zxytim也在學校,就約定今天來湊個熱鬧了。會場在中國科學院計算中心研究所,入會場時大概剛好9:00,人還是不多。這一次確確實實是青少年的開發者大會了,參會學生很多,而不像第一次大會主要都是已經工作的講者。我記得第一屆大會郭老師還說大會還有年齡限制,他都快到限制了。現在我們三個“老人”來這裏算不算不接地氣。以前人人時似乎有一羣“跪圈”在北京活躍的人,不過老實說我真不喜歡“跪圈”這個說法。互相學習是件好事,不過膜拜和跪來跪去還是免了。這些人似乎都沒有來,和去年相比平均年齡也許能下降10歲吧。我們三個就成了這裏年紀最大的幾個人了。這可能是因爲北京的青少年開發者比深圳多?也可能是宣傳做好了。不過用just-ping.com測試2013.adc-cn.org,大多數檢測點都返回Packets lost (100%)。