12468 - Zapping


Difficulty : trivial

Solution Description :

Ad hoc problem

Input a, and b

If input a=3 and b=9 then output: 6
If input a=9 and b=3 then output: 6 , i.e. Same

Find the min_value and max_value
ans1 = max_value - min_value
ans2 = (99 - max_value) + min_value + 1

Print min(ans1,ans2)