fork download
  1. H, P, F, D = 4, 14, 7, -1 # S
  2. #H, P, F, D = 4, 14, 7, 1 # N
  3. #H, P, F, D = 15, 9, 8, -1 # S
  4. #H, P, F, D = 0, 14, 15, -1 # N
  5. print()
  6. policiaaDireita = F < P
  7.  
  8. if D == 1 : #Hor
  9. if policiaaDireita:
  10. print('N')
  11. else:
  12. print('S')
  13. else:
  14. if policiaaDireita:
  15. print('S')
  16. else:
  17. print('N')
  18. print()
Success #stdin #stdout 0.02s 27704KB
stdin
Standard input is empty
stdout
S