题解 | #计算单位阶跃函数#
计算单位阶跃函数
https://www.nowcoder.com/practice/0b23793ae48a4e6cb7dfff042c959a04
while True:
try:
num_in = int(input())
out = 1 if num_in > 0 else ( 0.5 if num_in == 0 else 0)
print(out)
except:
break


