摘要: 问题: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, return 3. 阅读全文
posted @ 2016-10-28 16:25 小黄人python 阅读(2686) 评论(1) 推荐(0) 编辑
摘要: 哪一方最终给对方留下4的倍数个石头则win,即想方设法的给对方留下4的倍数个石头。 例如: 9(B win) A:3 B:2(B取2,给对方余4,对方则lose) A:1 | 2 | 3 B:3 | 2 | 1(B win) 例如:9 (A win) A:1 (留8,4的2倍) B:1 | 2 | 阅读全文
posted @ 2016-10-28 10:51 小黄人python 阅读(268) 评论(0) 推荐(0) 编辑