高级农民
- 积分
- 1312
- 大米
- 颗
- 鳄梨
- 个
- 水井
- 尺
- 蓝莓
- 颗
- 萝卜
- 根
- 小米
- 粒
- 学分
- 个
- 注册时间
- 2011-11-16
- 最后登录
- 1970-1-1
|
套用一个解答。。一个月之前也是一个test没有跑过15/16吧。。然后动啦贪念搜了一下改了提交test都过了
“If the two values only differ in the top bit, then x will be -128... and x - 1 will be -129, because the expression x - 1 promotes both arguments to int.
The simplest fix for this is just to do everything using int instead of byte, using a mask to make sure the XOR value is in the range [0, 255)”
链接戳这里 http://expertland.net/question/0 ... 482v230/detail.html
补充内容 (2015-1-28 12:46):
顺便恭喜楼主video啊。。下周去onsite== bless u bless me |
|