fork download
  1. # your code goes here
  2. #0JLQsNGB0LjQu9C10L3QutC+INCQ0YDRgtC10Lwg
  3. def progA(x,y):
  4. if x>y:
  5. return x-y
  6. else:
  7. return y-x
  8.  
  9.  
  10. def progB(x,y):
  11. if x>y:
  12. print(x-y)
  13. else:
  14. print(x-y)
  15.  
  16.  
  17.  
  18. def progC(x,y):
  19. if x>y:
  20. print(f"{x} {y}")
  21. else:
  22. print(f"{y} {x}")
  23.  
  24.  
  25. a = int(input())
  26.  
  27. b = int(input())
  28.  
  29. print(progA(a,b))
  30.  
  31. progB(a,b)
  32.  
  33. progC(a,b)
  34.  
Success #stdin #stdout 0.08s 14128KB
stdin
10
12
stdout
2
-2
12 10