原创 哈理工oj1189 區間最大值

區間最大值 II Description 給一個有n個整數的序列a1, a2, a3, …, an,然後有q個提問,每個提問爲兩個整數i、j,(i<=j),請你回答,在ai到aj中,最大值是多少。 注意:1 <= n,q <=

原创 2017 北京站網選 Minimum

描述 You are given a list of integers a0, a1, …, a2^k-1. You need to support two types of queries: Output Minx,y∈[l

原创 hdu 6201

transaction transaction transaction Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 132768/132768 K (Java/O

原创 hdu 1874 暢通工程續

暢通工程續 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 57

原创 poj 2828 Buy Tickets

Buy Tickets Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 21428 Accepted: 10496 Descrip

原创 hdu 3746 Cyclic Nacklace

Problem Description CC always becomes very depressed at the end of this month, he has checked his credit card yest

原创 E - GirlCat

As a cute girl, Kotori likes playing Hide and Seek'' with cats particularly. Under the influence of Kotori, many

原创 hdu5256序列變幻

hdu5256序列變幻 Problem Description 我們有一個數列A1,A2…An,你現在要求修改數量最少的元素,使得這個數列嚴格遞增。其中無論是修改前還是修改後,每個元素都必須是整數。 請輸出最少需要修改多少個元

原创 hdu 1754

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

原创 hdu 1698 Just a Hook

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

原创 Vacations

Vasya has n days of vacations! So he decided to improve his IT skills and do sport. Vasya knows the following infor

原创 hdu 1811 Rank of Tetris(拓撲排序+並查集)

自從Lele開發了Rating系統,他的Tetris事業更是如虎添翼,不久他遍把這個遊戲推向了全球。 爲了更好的符合那些愛好者的喜好,Lele又想了一個新點子:他將製作一個全球Tetris高手排行榜,定時更新,名堂要比福布斯富豪榜還響。關

原创 hdu 3371 Connect the Cities

Connect the Cities Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submissio

原创 poj 1679 The Unique MST

The Unique MST Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 32373 Accepted: 11743 Descript

原创 hdu 3635 Dragon Balls

Five hundred years later, the number of dragon balls will increase unexpectedly, so it’s too difficult for Monkey King(