С++ Перевести! plitka = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121, 144, 169, 196, 225, 256, 289, 324, 361, 400, 441, 484, 529, 576, 625, 676, 729, 784, 841, 900, 961]
def get_max(limit):
selected = 1
for a in plitka:
if a <= limit:
selected = a
else:
break
return selected
Petya = int(input())
Vasya = int(input())
otdelno = get_max(Petya) + get_max(Vasya)
vmeste = get_max(Petya+Vasya)
if otdelno > vmeste:
print('Petya leaves paint to himself')
elif otdelno == vmeste:
print('Equal')
else:
print('Petya gives paint to Vasya')
чего?3993!'('_!_ мвшьцу ьа