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