#NEWLINE# @ test_speed #NEWLINE# @ memoize #NEWLINE# def dolongthing( max_x , max_y ) : #NEWLINE# #INDENT# 'Does a nested loop - running time is O(n^2)\n\n    Args:\n        max_x (int) - An integer for max outer loop\n        max_y (int) - An integer for max inner loop\n    Returns:\n        res (int) - The resultant calculation\n    ' #NEWLINE# res = 0 #NEWLINE# for x in range ( max_x ) : #NEWLINE# #INDENT# for y in range ( max_y ) : #NEWLINE# #INDENT# res += ( x ** y ) #NEWLINE# #UNINDENT# #UNINDENT# return res