You are viewing a single comment's thread. Return to all comments →
how to run out of memory: it supposed to work, while the n array is small XD
def solve(n, m): tot = 0 for num in range(1,n+1): tot += num%m return tot
Seems like cookies are disabled on this browser, please enable them to open this website
Easy sum
You are viewing a single comment's thread. Return to all comments →
how to run out of memory: it supposed to work, while the n array is small XD