Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding: utf-8
- # Programacao 1, 2014.1 Pedro Paulo
- # Telefonia
- tempo = int(raw_input())
- if tempo <= 3:
- preco = 1.00 + 0.5* tempo
- elif tempo == 4:
- preco = 3.20
- else:
- preco = ((tempo / 5)*3.00) + ((tempo % 5) * 0.70) + 1.00
- print "R$ %.2f" % preco
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement