
POJ
鸩羽小夜
我是小垃圾,垃圾中的战斗圾
展开
-
POJ3067Japan(线段树+逆序对)
Japan plans to welcome the ACM ICPC World Finals and a lot of roads must be built for the venue. Japan is tall island with N cities on the East coast and M cities on the West coast (M <= 1000, N &l...原创 2019-11-20 17:44:56 · 319 阅读 · 0 评论 -
POJ2299Ultra-QuickSort (线段树+逆序对)
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted i...原创 2019-11-20 09:10:40 · 157 阅读 · 0 评论 -
POJ2777Count Color (线段树区间修改+查询,或运算,二进制)
Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem.There is a very long board with length L centimeter, L is...原创 2019-11-06 20:19:35 · 189 阅读 · 0 评论 -
POJ3468A Simple Problem with Integers(求和线段树+区间更新+区间查询)
You haveNintegers,A1,A2, ... ,AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other is to ask for the ...原创 2019-11-04 12:28:26 · 105 阅读 · 0 评论 -
POJ3685Matrix (二分套二分经典题目)
Given aN×Nmatrix A, whose element in thei-th row andj-th columnAijis an number that equalsi2+ 100000 ×i+j2- 100000 ×j+i×j, you are to find theM-th smallest element in the matrix....原创 2019-10-21 13:21:28 · 301 阅读 · 2 评论 -
POJ3273 Monthly Expense(二分求最小和中的最大)
Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤moneyi≤ 10,000) that h...原创 2019-10-05 23:42:45 · 129 阅读 · 0 评论 -
POJ3258River Hopscotch(二分)
Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight river with a ro...原创 2019-10-06 11:28:22 · 152 阅读 · 0 评论