![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
永恒—
反复与坚持之后,柔水终成雕刀
展开
-
C. NEKO's Maze Game(Codeforces Round #614 (Div. 2))
题目NEKO#ΦωΦ has just got a new maze game on her PC!The game’s main puzzle is a maze, in the forms of a 2×nrectangle grid. NEKO’s task is to lead a Nekomimi girl from cell (1,1) to the gate at (2,n)...原创 2020-01-20 14:55:47 · 166 阅读 · 1 评论 -
CodeForces - 803D. Magazine Ad(对答案二分)
题目主要城市杂志为读者提供发布广告的机会。 广告的格式应该是这样的:有空格分隔的非空字母的小写和大写字母。除此之外,字符串的中间有很多 ‘-’ 符号。现在要将字符串划为 k 行,每一行只能在空格或者 ‘-’ 后截断,现在问最长的一行最短长度是多少。Input第一行包含一个整数 k (1 ≤ k ≤ 105)。第二行包含一个字符串 — 只包含大小写字母,空格和 ‘-’ 符号。Outp...原创 2020-01-18 16:36:19 · 230 阅读 · 0 评论 -
Mahmoud and Ehab and the xor CodeForces - 862C(异或按位思维)
题目你现在有0…10^6这些数字供选择,让你组成一个大小恰好为n的整数集合,这个集合里面的数字各不不相同,且要求它们的异或和为x.如整数集合为{2,3,4,5},则它们的异或和的表达式就为2^ 3 ^ 4^5.Input第一行两个数字n和x.1<=n<=10^50<=x<=10^5Output如果没有这样的集合就只输出一行“NO”.否则,第一行输出"YES...原创 2020-01-15 18:34:50 · 260 阅读 · 0 评论 -
Wall Painting HDU - 4810(按位算贡献)
题目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...原创 2020-01-13 13:45:17 · 218 阅读 · 0 评论 -
Poor Warehouse Keeper HDU - 4803(思维)
题目Jenny is a warehouse keeper. He writes down the entry records everyday. The record is shown on a screen, as follow:There are only two buttons on the screen. Pressing the button in the first line o...原创 2020-01-12 19:49:25 · 123 阅读 · 0 评论 -
D - Ball HDU - 4811(思维)
题目Jenny likes balls. He has some balls and he wants to arrange them in a row on the table.Each of those balls can be one of three possible colors: red, yellow, or blue. More precisely, Jenny has R r...原创 2020-01-12 15:37:37 · 283 阅读 · 0 评论