我也是python a了 line = input().split() n = int(line[0]) m = int(line[1]) matrix = [[int(number) for number in input().split()] for _ in range(n)] result = 0 for j in range(m):     curr_max = 0     for i in range(n):         curr_max = max(matrix[i][j], curr_max)     result += curr_max print(result)
点赞 2

相关推荐

06-15 18:44
黄淮学院 Java
Lynn012:如果是居民楼还是算了吧,看着有点野呢
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务