y=int(input("请输入您的语文分数:"))
s=int(input("请输入您的数学分数:"))
yy=int(input("请输入您的英语分数:"))
pjf=(y+s+yy)/3
s=pjf
sh=int(s)
s1=sh+0.5
if s>s1 or s==s1:
sa=sh+1
s3=str(sa)
else:
s3=str(sh)
print("本次考试平均分为",s3,"分")
if y>=s and y>=yy:
d=y
k="语文"
if s>=y and s>=yy:
d=s
k="数学"
if yy>=s and yy>=y:
d=yy
k="英语"
if y<=s and y<=yy:
zx=y
dk="语文"
if s<=y and s<=yy:
zx=s
dk="数学"
if yy<=s and yy<=y:
zx=yy
dk="英语"
if s==yy==y:
print("三科分数相等")
else:
if y==d:
print("本次考试最高分为 语文 是",d,"分")
if s==d:
print("本次考试最高分为 数学 是",d,"分")
if yy==d:
print("本次考试最高分为 英语 是",d,"分")
if y==zx:
print("本次考试最低分为 语文 是",zx,"分")
if s==zx:
print("本次考试最低分为 数学 是",zx,"分")
if yy==zx:
print("本次考试最低分为 英语 是",zx,"分")
c=d-zx
print("您的最大分差为",c,"分")
执行结果