Advertisement
TwiNNeR

snzl6z1

Dec 11th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import math
  2.  
  3.  
  4. def A1(s):
  5.     # print math.e
  6.     if s >= 60: return 1.0
  7.     return 1 / (math.pow(math.e, 60 - abs(s)))
  8.  
  9.  
  10. def A2(s):
  11.     if s <= 10: return 1.0
  12.     return 1 / (1 + math.pow(math.e, abs(10 - s)))
  13.  
  14.  
  15. if __name__ == "__main__":
  16.     t = input()
  17.     print A1(t)
  18.     print A2(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement