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