擅长:python、mysql、java
<pre><code>def human_pyramid(no_of_people):
if (no_of_people == 1):
return 1 * (50)
else:
return no_of_people * (50) + human_pyramid(no_of_people - 2)
def find_maximum_people(max_weight):
max=max_weight//50
i = max
while i<=max:
curr=human_pyramid(max)
max=max-2
i=i-2
max_people = find_maximum_people(1000)
print(max_people)
</code></pre>