原创 I Hate It (HDU - 1754) (線段樹的點更新-最值查詢)

I Hate It Time Limit: 9000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 809

原创 Garland(CodeForces - 767C )

C. Garland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outpu

原创 The Tag Game(CodeForces - 813C)

The Tag Game time limit per test 1 second memory limit per test 256 megabytes input standard input output

原创 Maze(CodeForces - 377A )(思維,廣搜)

A. Maze time limit per test 2 seconds memory limit per test 256 megabytes input standard input output sta

原创 敵兵佈陣(HDU - 1166)(線段樹的點更新-區間查詢)

  敵兵佈陣 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9

原创 Fire!( UVA - 11624)

  題意理解:我認爲這道題最大的坑,就是F可能有很多個,我之前一直不知道,所以一直wrong answer。   解題思路:先把F和J的位置都存下來,看看有沒有適合的方案,就是廣搜,加一些標記。   #include<stdio.h> #

原创 Alternative Thinking(CodeForces - 604C)(思維)

 Alternative Thinking time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu

原创 Just a Hook (HDU - 1698)(線段樹的區間更新-區間查詢)

Just a Hook Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3

原创 Battle City(POJ - 2312)(深搜+優先隊列)

Battle City Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 8877   Accepted: 2965 Description Many of

原创 Count The Pairs(hdu-4750)(最小生成樹)

Count The Pairs Time Limit: 20000/10000 MS (Java/Others)    Memory Limit: 65535/65535 K (Java/Others) Total Submission

原创 Petya and Exam(Codeforces Round #425 (Div. 2))

B. Petya and Exam time limit per test 2 seconds memory limit per test 256 megabytes input standard input output st

原创 樹狀數組的修改與查詢總結

      研究了很長時間的樹狀數組,下面來做一個自己的總結。(如果以下見解有什麼問題,歡迎指出)       樹狀數組是真的很有意思,根據我現在的理解,如果普普通通的不做任何東西,那麼他的單點修改適用於區間查詢,他的區間修改,適用於單點

原创 非常可樂(HDU-1495)

非常可樂 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 16064  

原创 寶島地圖 (51Nod-1572)

1572 寶島地圖 題目來源: CodeForces 基準時間限制:1 秒 空間限制:131072 KB 分值: 20 難度:3級算法題 勇敢的水手們到達了一個小島,在這個小島上,曾經有海盜在這裏埋下了一些寶藏。然而

原创 Jzzhu and Cities(CodeForces - 449B)

B. Jzzhu and Cities time limit per test 2 seconds memory limit per test 256 megabytes input standard input