mirror of
https://github.com/codeflash-ai/codeflash-internal.git
synced 2026-05-04 18:25:18 +00:00
12 lines
240 B
Python
12 lines
240 B
Python
def problem_p03838(input_data):
|
|
import math
|
|
|
|
def abs(x):
|
|
|
|
return math.fabs(x)
|
|
|
|
a, b = list(map(int, input_data.split()))
|
|
|
|
c = int(abs(b) - abs(a))
|
|
|
|
return int(abs(c)) + (c * a < 0) + (c * b < 0) if c != 0 else 1
|