Refrain
貪心...我都好奇自己當時沒事干怎么就學了貪心...
當然盡管這樣23道題我也沒寫完...
正如gg所說:我們要不厭其煩地寫題解。(當然不存在的
1455:An Easy Problem
Given a positive integer I, you task is to find out an integer J, which is the minimum integer greater than I, and the number of '1's in whose binary form is the same as that in the binary form of I.
For example, if "78" is given, we can write out its binary form, "1001110". This binary form has 4 '1's. The minimum integer, which is greater than "1001110" and also contains 4 '1's, is "1010011", i.e. "83", so you should output "83".
A line containing a number "0" terminates input, and this line need not be processed.
我們稱之為路的,無非是躊躇。
轉載于:https://www.cnblogs.com/Grigory/p/10159642.html
總結
- 上一篇: 通过微信订阅消息功能给小程序给用户发送消
- 下一篇: 希望OL修改服务器经验,希望OL服务端架