题解 | #奇偶统计#
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
n = int(input()) even = n//2 if n%2 ==1: odd = even+1 else: odd = even print(f'{odd} {even}')
奇偶统计
https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210
n = int(input()) even = n//2 if n%2 ==1: odd = even+1 else: odd = even print(f'{odd} {even}')
相关推荐