Sort by

recency

|

554 Discussions

|

  • + 0 comments
    students, subject = map(int, input().split())
    X=[]
    for _ in range(subject):
         X.append(list(map(float, input().split())))
    scores = zip(*X)
    for i in scores:
        print(sum(i)/subject)
    
  • + 0 comments

    For Python3 Platform

    N, X = map(int, input().split())
    marks_list = []
    for _ in range(X):
        marks_list += [list(map(float, input().split()))]
    
    for marks in zip(*marks_list):
        print(f"{sum(marks)/X:.1f}")
    
  • + 0 comments
    inp = list(map(int,list(input().split(' '))))
    sub = []
    
    for _ in range(inp[1]):
        sub.append(list(map(float,list(input().split(' ')))))
    
    for i in zip(*sub):
        print(f'{(sum(i)/len(i)):.1f}') 
    
  • + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    n_students,x_subjects = map(int, input().split())
    
    lista = list()
    
    students_list = [x+1 for x in range(n_students)]
    
    for j in range(x_subjects):
        line = list(map(float, input().split()))
        lista.append(line)
    
    for student in zip(*lista):
        print(round(sum(student)/ x_subjects,1))
        
    
  • + 0 comments
    N,X = map(int,input().split())
    subject_data = [list(map(float,input().split())) for _ in range(X)]
    for stud_data in zip(*subject_data):
        print(round(sum(stud_data)/X,1))