题解 | #奇偶统计#
奇偶统计
http://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
a = int(input()) if 1 <= a <= 100000: if a % 2 == 0: b = a / 2 c = a - b else: b = (a-1) / 2 c = a - b print("{} {}".format(int(c),int(b))) else: pass笨方法还挺管用😁
奇偶统计
http://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
a = int(input()) if 1 <= a <= 100000: if a % 2 == 0: b = a / 2 c = a - b else: b = (a-1) / 2 c = a - b print("{} {}".format(int(c),int(b))) else: pass笨方法还挺管用😁
相关推荐