Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def A1(s):
- # print math.e
- if s >= 60: return 1.0
- return 1 / (math.pow(math.e, 60 - abs(s)))
- def A2(s):
- if s <= 10: return 1.0
- return 1 / (1 + math.pow(math.e, abs(10 - s)))
- if __name__ == "__main__":
- t = input()
- print A1(t)
- print A2(t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement