Run ID:86668

提交时间:2024-07-27 09:57:10

a,b,c,d=map(int,input().split()) if a<=b<=c<=d: if c-a >= d-b: print(c-a) else: print(d-b)