原创 HDU5044 Tree(樹鏈剖分)

Tree 傳送門1傳送門2 You are given a tree (an acyclic undirected connected graph) with N nodes. The tree nodes are numbered f

原创 HDU6143 Killer Names(數論)

Killer Names 傳送門1傳送門2 Galen Marek, codenamed Starkiller, was a male Human apprentice of the Sith Lord Darth Vader. A p

原创 2017-11-3離線賽總結

題目 失分小結 估分 實際分數 題解 T1 P70 CODE P100 CODE T2 P90 CODE P95 CODE P100 CODE T3 P100 CODE 題目 3

原创 HDU5800 To My Girlfrend(計數dp)

To My Girlfriend 傳送門1傳送門2 Dear Guo I never forget the moment I met with you.You carefully asked me: “I have a very dif

原创 HDU2586 How far away?(樹鏈剖分求LCA)

How far away? 傳送門1傳送門2 There are n houses in the village and some bidirectional roads connecting them. Every day peole

原创 HDU5236 Article(期望dp)

Article 傳送門1傳送門2 As the term is going to end, DRD begins to write his final article. DRD uses the famous Macrohard’s