- 博客(9)
- 收藏
- 关注
原创 hdu 5461 Largest Point
Given the sequence A A with n n integers t 1 ,t 2 ,⋯,t n t1,t2,⋯,tn. Given the integral coefficients a a and b b. The fact that select two elements t i ti and t j tj of A A an
2017-06-22 20:34:11 217
原创 Fang Fang 思维题
Fang Fang says she wants to be remembered. I promise her. We define the sequence F F of strings. F 0 = ‘‘f", F0 = ‘‘f",F 1 = ‘‘ff", F1 = ‘‘ff",F 2 = ‘‘cff", F2 = ‘‘cff",F n = F
2017-06-22 20:31:56 470
原创 树状数组 lowbit函数
int Lowbit(x){ return x&(-x);}如:x =1: 1 &-1(设位数为8)0000 0001 & 1111 1111 = 1x = 6:6 & -6 0000 0110&1111 1010 = 2总结一下,其实就是:求出2^p(其中p: x 的二进制表示数中, 右向左数第一个1的位置),如6的二进制表示为110,向左数第零个为0,第一
2017-06-09 23:19:50 1633
原创 hdu 5974 A Simple Math Problem
Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Comm
2017-06-09 23:15:21 199
原创 hdu5972 Regular Number
Using regular expression to define a numeric string is a very common thing. Generally, use the shape as follows: (0|9|7) (5|6) (2) (4|5) Above regular expression matches 4 digits:The first is one
2017-06-09 23:13:46 327
原创 hdu5971 Wrestling Match
Nowadays, at least one wrestling match is held every year in our country. There are a lot of people in the game is "good player”, the rest is "bad player”. Now, Xiao Ming is referee of the wrestling m
2017-06-09 23:11:46 329
原创 Convex hdu5979
We have a special convex that all points have the same distance to origin point.As you know we can get N segments after linking the origin point and the points on the convex. We can also get N ang
2017-06-04 17:57:40 425
原创 hdu 4571 Travel in time 最短路+dp
Bob gets tired of playing games, leaves Alice, and travels to Changsha alone. Yuelu Mountain, Orange Island, Window of the World, the Provincial Museum etc...are scenic spots Bob wants to visit. Howev
2017-06-02 19:49:33 256
原创 hdu4574 Bombs 枚举+dfs
Terrorists are around everywhere, they always make troubles by detonating bombs. The terrorist have some gunpowder to make bombs, different gunpowder has different damage, every kind of gunpowder can
2017-06-02 19:44:19 291
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人