#26230: rf


jefflin2006@gmail.com (雷掃把)

學校 : 不指定學校
編號 : 132684
來源 : [219.85.239.148]
最後登入時間 :
2023-08-25 16:35:56
c295. APCS-2016-1029-2最大和 -- 2016年10月APCS | From: [123.204.132.24] | 發表日期 : 2021-07-25 16:49

import sys

 

a+list(map(int,input().split))

n=a[0]

m=a[1]

 

candidate=[]

for i in range(N):

         row=list(map(intinput().split()))

         candidatr.append(max(rows))

 

print(sum(candidate))

 

times=0

for i in candidate:

   if sum(candidate)%i==0:

       print(i<end=" ")

       time+=1

if time==0:

   print(-1)

eles:

   print()

 

 

 
ZeroJudge Forum