
位操作
文章平均质量分 76
Cymbals
Public void effect()
展开
-
Gym - 101532A Subarrays Beauty(位操作找规律)
You are given an array a consisting of n integers. A subarray (l, r) from array a is defined as non-empty sequence of consecutive elements al, al + 1, …, ar.The beauty of a subarray (l, r) is calcul...原创 2018-03-19 21:10:18 · 897 阅读 · 0 评论 -
NERC 12 H. Hyperdrome
Hypergnome planet is famous for its Great Universal Games between gnomes — the Games between gnomes from each part of the galaxy in various disciplines. The most popular discipline in the Games is th...原创 2018-07-29 17:42:04 · 621 阅读 · 0 评论 -
POJ - 2777 Count Color(线段树 + 状压)
There is a very long board with length L centimeter, L is a positive integer, so we can evenly divide the board into L segments, and they are labeled by 1, 2, … L from left to right, each is 1 centime...原创 2018-08-02 16:58:00 · 327 阅读 · 0 评论