class Solution:
def Minimumdays(self , n , DEF ):
# write code here
mi,ma = DEF[0],DEF[0]
for i in range(len(DEF)):
if DEF[i] < mi:
mi = DEF[i]
if DEF[i] > ma:
ma = DEF[i]
return max(mi+n-1,ma)
全部评论
(0) 回帖