原创 並查集

代碼部分(必背): #include<cstdio> #define MAX_N 10000 int par[MAX_N]; int rank[MAX_N]; void init(int n){//初始化n個元素 for(in

原创 memse和fill函數的用法

memset需要頭文件: #include<cstring> fill需要頭文件: #include<algorithm> using namespace std; memset按照1字節爲單位對內存進行填充,-1的每一位二進制位

原创 關於Forest軟件金幣快速獲取的方法&將Forest最長專注時間調整爲3小時&forest買植物攻略

Forest金幣攻略&調整最久專注時間&買樹攻略一、Forest軟件金幣快速獲取的方法1、官方計算公式2、代碼及運行結果3、函數分析與結論1.函數:2.函數圖像:3.分析&結論二、專注時間調整爲3小時詳細教程1、點擊左上角的三個橫向白

原创 1132. Cut Integer (20)

題目: Cutting an integer means to cut a K digits long integer Z into two integers of (K/2) digits long integers A and B.

原创 1118. Birds in Forest (25)

題目: Some scientists took pictures of thousands of birds in a forest. Assume that all the birds appear in the same pictu

原创 1120. Friend Numbers (20)

題目: Two integers are called “friend numbers” if they share the same sum of their digits, and the sum is their “friend I

原创 《富爸爸,窮爸爸》書摘一

富爸爸,窮爸爸 〔美〕羅伯特•清崎 2018年1月5日 序言 這就是你所需要的 羅伯特不僅描述了僱員和僱主的區別,還解釋了掌握自己的命運和命運由別人掌握的區別。 2018年1月5日

原创 《看不見的森林:林中自然筆記》書摘二

2017年10月27日 4月2日 花朵 如果生化性質正好匹配,柱頭上的細胞就釋放出水液和營養物質,逐漸溶解花粉厚實的盔甲。在內部一對膨脹的細胞推擠下,花粉粒的外殼裂開。兩個細胞中較大的那個就像阿米巴蟲一樣,從破裂的花粉殼中長出來,開始從

原创 1121. Damn Single (25)

題目: “Damn Single (單身狗)” is the Chinese nickname for someone who is being single. You are supposed to find those who are

原创 1096. Consecutive Factors (20)

題目: Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be

原创 《看不見的森林:林中自然筆記》書摘一

筆記摘自 看不見的森林:林中自然筆記 [美]戴維·喬治·哈斯凱爾 2017年10月17日 序 ,喇嘛與學生從事的是同樣的工作:凝視一座壇城,提升自己的心靈。這種相似性並不止於語言與象徵意義上的重合,而是更有深遠的內涵。我相信,森林裏的生

原创 1116. Come on! Let's C (20)

題目: “Let’s C” is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejia

原创 關於IDE軟件(Dev cpp/VS/Code Blocks)出現ld returned 1 exit status的改正措施

寫代碼本來很開心呢,然而。。出現了 ld returned 1 exit status// 報錯情況,以前遇到這種情況:都是因爲上一個exe文件沒有關閉(就是運行程序的黑色窗口),這時只要找到(windows)任務管理器中對應的.exe

原创 《黑匣子思維:我們如何更理性地犯錯》ipad部分

筆記摘自 黑匣子思維:我們如何更理性地犯錯 [英] 馬修·薩伊德 2017年10月10日 第 1 章 一臺常規手術 當我們再退後一步,全面考慮錯誤發生的原因時,會發現極具諷刺性的事實。研究表明,我們常常

原创 《黑匣子思維:我們如何更理性地犯錯》iphone部分

筆記摘自 黑匣子思維:我們如何更理性地犯錯 [英] 馬修·薩伊德 2017年10月10日 第 1 章 一臺常規手術 當我們再退後一步,全面考慮錯誤發生的原因時,會發現極具諷刺性的事實。研究表明,我們常常