#1540: answer


1655007-2@g.puiching.edu.mo (P6D18梁卓諾)

School : No School
ID : 2985
IP address : [192.168.120.33]
Last Login :
2024-11-06 14:34:39
a066. 最值之差 | From: [192.168.120.33] | Post Date : 2024-05-21 08:52

a = input().split(',')
a1 = int(a[0])
a2 = int(a[1])
a3 = int(a[2])
a4 = int(a[3])
big = max(a1,a2,a3,a4)
small = min(a1,a2,a3,a4)
mid = big - small
print(str(big) + ',' + str(small) + ',' + str(mid))
 
ZeroJudge Forum