Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # clube dos cincos
- # obi 2016 nivel 1 f1
- # by : Deukaus / Matheus Santos
- # https://olimpiada.ic.unicamp.br/pratique/p1/2016/f1/clube/
- alunos = int(input())
- l = input().split(" ")
- esportes = list(map(int, l))
- a,b,c,d,e,f,g = esportes[0], esportes[1], esportes[2], esportes[3], esportes[4], esportes[5], esportes[6]
- alunos -= d+e+f+g
- a -= d+e
- b -= d+f
- c -= e+f
- if alunos < 0 or a < 0 or b < 0 or c < 0 or alunos != a+b+c:
- print("S")
- else:
- print("N")
Advertisement
Add Comment
Please, Sign In to add comment