fork download
  1. sp = ['10 11', '-5 -10', '13 1', '8 -5', '-5 -9', '-10 4', '-11 -2', '12 1', '17 1']
  2. mx = 0
  3. for A in range(100):
  4. yes = 0
  5. no = 0
  6. for i in sp:
  7. s, k = i.split()
  8. if int(s) > A or int(k) > 3:
  9. yes += 1
  10. else:
  11. no += 1
  12. if no == 4 and A > mx:
  13. mx = A
  14.  
  15. print(mx)
Success #stdin #stdout 0.07s 14176KB
stdin
Standard input is empty
stdout
11