September 1st 2016 Week 36th Thursday】的更多相关文章

Everything is going on, but don't give up trying. 万事随缘,但不要放弃努力. There are numerous things that we can't control, rather than to curse the unfairness of life, it would be better to accept the truth. However, we all have dreams. Sometimes, even though…
Prosperity discovers vice, adversity virtue. 得意时露瑕疵,逆境中见品质. I wish I would have someone like you, fresh and cool as the breeze in the valley, warm and sweet as the sunshine in an old town. 我希望有个如你一般的人,如山间清爽的微风,如古城和煦的阳光. I missed it again, once again,…
Things won are done, the soul of joy lies in the doing. 得到即是完结,快乐的精髓在于过程. Things won are done, things lost are done as well. Don't struggle too much on the things that had alreay happened. For a gallant spirit there can never be defeat. 勇敢的灵魂,永不言败.…
The secret of high-impact business is early preparation. 高效商务,赢在未雨绸缪. Early and best preparation is the secret of all successes. The most difficult thing is the decision to act, the rest if merely tenacity. 最难的是下定决心行动,其余的只需坚持不懈. We are often told tha…
Calculation never made a hero. 举棋不定,难以称雄. We change. We have to. Or we spend the rest of our lives fighting the same battles. 我们会改变,也必须改变,否则就只能耗尽余生深陷同样的战斗中.…
How does the world look through your eyes? 你眼里的世界是什么样子的? How does the world look through your eyes? Gloomy or bright? That mostly depends on your own character, optimistic or pessimistic. As to myself, I have changed from an optimist to a pessimist,…
With the most true of yourself, can you meet the most suitable one. 用最真实的自己,才能遇见最合适的那个人. You are always in a rush, you are always too exhausted to have a proper and deep converstation with yourself. That makes you easily get lost in such a rapid and…
一开始有n个杯子,每个杯子里有一些豆子,两个人轮流操作,每次只能将一个豆子移动到其所在杯子之前的某个杯子里,不过可以移动到的范围只有一段区间.问你是否先手必胜. 一个杯子里的豆子全都等价的,因为sg函数是异或起来的值,所以一个杯子里如果有偶数个豆子,就没有意义. 用sg(i)表示i杯子中的豆子的sg值,sg(i)就是其所能移动到的那段杯子的区间的sg值的mex(未出现的最小非负整数).可以用线段树去做.是经典问题. 由于每次看似是后缀询问,实则是全局询问,故而主席树完全是多余的. 回顾一下区间m…
这份代码可以作为找割边的模板.割边分割出来的部分是无向图的 边-双连通分量. 平面上2*n+1个点,在同一横坐标上的点之间可以任意两两匹配.同一纵坐标上的点之间也可以.问你对于所有的点i,输出i被移除之后,剩余的点能否完美匹配. 把x坐标当一列点,y坐标当一列点,原本的点当做边,建出来一个二分图. 一个连通块可以完美匹配,当且仅当其中边数为偶数.必须所有连通块的边数都是偶数,整个图才可以完美匹配. 考虑移除一个点,如果它不是割边,那么仅仅会让其所在连通块大小-1.如果其是割边,那么将其所在连通块…
Difficult circumstances serve as a textbook of life for people. 艰难坎坷是人们的生活教科书. It would be better if the book of difficulties is not so thick. Halloween is an opportunity to be really creative. 万圣节前夜是挥洒创意的好时机.…