原创 HDU - 5877 Weak Pair(dfs序+樹狀數組)

A lot of battleships of evil are arranged in a line before the battle. Our commander decides to use our secret wea

原创 HDU3333 Turing Tree(線段樹 離線處理)

After inventing Turing Tree, 3xian always felt boring when solving problems about intervals, because Turing Tree c

原创 Atlantis(線段樹掃描線求面積)

There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts

原创 Count Color(線段樹&狀壓)

Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems.

原创 HDU1828 Picture

A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their side

原创 deepin(linux)vscode的tasks.json和launch.json配置文件

參考文章 tasks是用在launch前執行的任務,launch是讀取執行文件。 在當前文件是C++的情況下,tasks可以被用來做編譯,而launch用來執行編譯好的文件。 task.json: // tasks.json {

原创 Physical Education Lessons(線段樹動態開點)

This year Alex has finished school, and now he is a first-year student of Berland State University. For him it was

原创 Vases and Flowers(線段樹+二分)

Alice is so popular that she can receive many flowers everyday. She has N vases numbered from 0 to N-1. When she r

原创 HDU - 4553 約會安排(線段樹)

寒假來了,又到了小明和女神們約會的季節。   小明雖爲屌絲級碼農,但非常活躍,女神們常常在小明網上的大段發言後熱情回覆“呵呵”,所以,小明的最愛就是和女神們約會。與此同時,也有很多基友找他開黑,由於數量實在過於巨大,怎麼安排時間

原创 codeforces #576 C.MP3(離散化處理)

One common way of digitalizing sound is to record sound intensity at particular time moments. For each time moment

原创 Super Mario(主席樹)

Mario is world-famous plumber. His “burly” figure and amazing jumping ability reminded in our memory. Now the poor

原创 D-query(主席樹)

Given a sequence of n numbers a1, a2, …, an and a number of d-queries. A d-query is a pair (i, j) (1 ≤ i ≤ j ≤ n).

原创 Codeforces 91B Queue(單調隊列 線段樹)

There are n walruses standing in a queue in an airport. They are numbered starting from the queue’s tail: the 1-st

原创 Interviewe(RMQ )

YaoYao has a company and he wants to employ m people recently. Since his company is so famous, there are n people

原创 Table with Letters - 2(dp & 隊列思想)

Vasya has recently started to learn English. Now he needs to remember how to write English letters. He isn’t sure a