import resource
l=[]
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024, len(l))
for i in range(5005000):
l.append(str(i))
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss/1024, len(l))
aW1wb3J0IHJlc291cmNlCmw9W10KcHJpbnQocmVzb3VyY2UuZ2V0cnVzYWdlKHJlc291cmNlLlJVU0FHRV9TRUxGKS5ydV9tYXhyc3MvMTAyNCwgbGVuKGwpKQpmb3IgaSBpbiByYW5nZSg1MDA1MDAwKToKCWwuYXBwZW5kKHN0cihpKSkKcHJpbnQocmVzb3VyY2UuZ2V0cnVzYWdlKHJlc291cmNlLlJVU0FHRV9TRUxGKS5ydV9tYXhyc3MvMTAyNCwgbGVuKGwpKQ==