You are viewing a single comment's thread. Return to all comments →
Passed
def workbook(n, k, arr): res=0 x=[] for v in arr: d={} for i in range(v): if (i+1)%k!=0: d[i+1]=1 else: d[i+1]=1 x.append(d) d={} if v%k!=0: x.append(d) for i in range(len(x)): if i+1 in x[i]: res+=1 return res
Seems like cookies are disabled on this browser, please enable them to open this website
Lisa's Workbook
You are viewing a single comment's thread. Return to all comments →
Passed