题解 | #牛牛学数列#
牛牛学数列
https://www.nowcoder.com/practice/0b97367cd2184c12a0e02f7c223aee11
a = int(input()) b = a // 2 print(-b) if a % 2 == 0 else print(-b + a)#题解#
牛牛学数列
https://www.nowcoder.com/practice/0b97367cd2184c12a0e02f7c223aee11
a = int(input()) b = a // 2 print(-b) if a % 2 == 0 else print(-b + a)#题解#
相关推荐