fork download
  1. a = int(input())
  2. b = int(input())
  3. if a>b:
  4. if (a-b)%2==0:
  5. print("Ly A sang ly B ", (a-b)//2, " ml")
  6. else:
  7. print("Ly A sang ly B ", (a-b)/2, " ml")
  8. elif a<b:
  9. if (b-a)%2==0:
  10. print("Ly B sang ly A ", (b-a)//2, " ml")
  11. else:
  12. print("Ly B sang ly A ", (b-a)/2, " ml")
  13. else:
  14. print(0)
Success #stdin #stdout 0.11s 14184KB
stdin
Standard input is empty
stdout
Standard output is empty