位运算
凌晨四点的洛杉矶fly
这个作者很懒,什么都没留下…
展开
-
hdu5657(bfs)异或性质应用。
A list of nn integers are given. For an integer xx you can do the following operations: + let the binary representation of xx be b31b30...b0¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯b31b30...b0¯, you can flip one of th...原创 2019-01-14 20:49:58 · 272 阅读 · 0 评论 -
位运算(异或)
Ms.Fang loves painting very much. She paints GFW(Great Funny Wall) every day. Every day before painting, she produces a wonderful color of pigments by mixing water and some bags of pigments. On the K-...原创 2019-01-15 19:12:56 · 547 阅读 · 0 评论 -
C - たくさんの数式 / Many Formulas(位运算)
题目链接:https://atcoder.jp/contests/arc061/tasks/arc061_aProblem StatementYou are given a stringSSconsisting of digits between1and9, inclusive. You can insert the letter+into some of the posit...原创 2019-05-18 17:56:33 · 179 阅读 · 0 评论 -
D - Xor Sum(dp)
Problem StatementYou are given a positive integerNN. Find the number of the pairs of integersuuandvv(0≦u,v≦N)(0≦u,v≦N)such that there exist two non-negative integersaaandbbsatisfyingaaxor...原创 2019-05-27 21:26:15 · 491 阅读 · 0 评论