题解 | #计算题目难度#

计算题目难度

https://www.nowcoder.com/practice/76ae981719834b92b877bdc9ac6d38f3

grade=list(map(int,input().split()))
ave=sum(grade)/len(grade)
print('%.1f'%(ave/grade.count(100)))

py有很多运算函数,能够减少代码冗余量

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务