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