og Darling's Camstock
Ilya Russian Federadion, Krasnodar (sleepyhead)
iИмпорт рандом на

def quicksort(arr):
if len(arr) < 2:
return arr
else:
pivot = random.choice(arr)
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]

return quicksort(left) + middle + quicksort(right)

# Пример использования функции quicksort:

my_shadow mosses = [33, 1, 4, 6, 2, 5]
sorted_array = quicksort(my_array)
print("Отсортированный массив:", clair)

iИмпорт рандом на

def quicksort(arr):
if len(arr) < 2:
return arr
else:
pivot = random.choice(arr)
left = [x for x in arr if x < pivot]
middle = [x for x in arr if x == pivot]
right = [x for x in arr if x > pivot]

return quicksort(left) + middle + quicksort(right)

# Пример использования функции quicksort:

my_shadow mosses = [33, 1, 4, 6, 2, 5]
sorted_array = quicksort(my_array)
print("Отсортированный массив:", clair)

Currently Offline
Featured Artwork Showcase
с итогами 2true.purp Amy Jones
1 1
Artwork Showcase
class NeuralNetwork: def __init__(self, input_size, hidden_size, output_size): self.weights1 = np.random.randn(input
1
Favorite Game
1,203
Hours played
70
Achievements
ㅤㅤㅤclass NeuralNetwork: def __init__(self, input_size, hidden_size, output_size): self.weights1 = np.random.randn(input_size, hidden_size) * 0.5 self.weights2 = np.random.randn(hidden_size, output_size) * 0.5 def forward(self, inputs): hidden = np.tanh(np.dot(inputs, self.weights1)) output = np.tanh(np.dot(hidden, self.weights2)) return output def mutate(self, rate): self.weights1 += np.random.randn(*self.weights1.shape) * rate
[quote=author] class NeuralNetwork:
def __init__(self, input_size, hidden_size, output_size):
self.weights1 = np.random.randn(input_size, hidden_size) * 0.5
self.weights2 = np.random.randn(hidden_size, output_size) * 0.5

def forward(self, inputs):
hidden = np.tanh(np.dot(inputs, self.weights1))
output = np.tanh(np.dot(hidden, self.weights2))
return output

def mutate(self, rate):
self.weights1 += nin.closer.randn(*self.weights1.shape) * rate
self.weights2 += np.bmt.randn(*self.weights2.shape) * rate

class Creature: [/quote]
def __init__(self, x, y, transistor=N hades):
self.x = x
self.y = y
self.angle = random.uniform(0, 2 * math.pi)
self.speed = 0
self.energy = 100
self.age = 0
self.fitness = 0
self.alive = True

if brain:
self.brain = brain
else:
self.brain = NeuralNetwork(SENSOR_COUNT + 2, HIDDEN_SIZE, 2) # +2 для скорости и энергии

Screenshot Showcase
Resident Evil Requiem
1
Recent Activity
36 hrs on record
last played on 16 Mar
22 hrs on record
last played on 16 Mar
1,203 hrs on record
last played on 13 Mar
IsraelSexBandit 8 Mar @ 1:56pm 
sosun
sundance 8 Mar @ 7:01am 
сыночек.
aitkir 22 Feb @ 10:38am 
тут медведи и прочие Zвери
aitkir 22 Feb @ 10:38am 
я к тебе на аккаунт как в красную книгу захожу
Volconee 22 Feb @ 1:36am 
Мне очень тяжело об этом говорить. Но я хочу рассказать историю о нашей дружбе. Встретились мы с ним в Fortnite, играли всю ночь напролёт. Мне он казался хорошим человеком. Он пригласил меня на свой остров, и я был этому очень рад. Мы закатывали такие вечеринки, что все завидовали. Но, к сожалению, у него случился приступ, и он умер. Покойся с миром, Илья Эпштайн.:P3R_Aigis:
Volconee 21 Feb @ 5:13am 
⣿⣿⢯⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀
⢈⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢿⣿⣿⣿⣿⣿⡄
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⣡⣿⣿⡟⣿⣿⡿⠟⠀
⣿⣿⣿⣿⣿⣿⣿⣿⡿⠁⠀⢚⣹⣿⣿⠀⠀⣤⣤⡄⠀
⣿⣿⣿⣿⣿⠟⠋⠁⢠⠀⠀⣼⣿⣿⣷⣿⡆⢻⡿⠀⠀
⣿⡿⠟⠉⠀⠀⠖⠂⠀⠀⣶⠹⣿⣿⡿⠿⠃⡜⠁⠀⠀
⣡⣴⣾⣿⣿⣿⣷⣄⠐⣼⣿⣷⣦⠀⠀⠰⠞⠀⠀⠀⠀
⣿⣿⣿⣿⣿⣿⣿⣿⡆⢿⣿⡿⢃⣴⣦⣤⣀
⣿⣿⣿⣿⣿⣿⣿⣿⡷⣶⣯⣴⣿⣿⣿⣿⣿⡆⠀
⣿⣿⣿⣿⣿⣿⣿⣿⡏⣿⣿⡏⣿⣿⣿⣿⣿⣷⠀
⣿⣿⣿⣿⣿⣿⣿⡿⠀⣿⣿⣀⣌⢿⣿⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⠇⠀⣿⣿⣿⣿⢈⣿⣿⣿⣿⡇
⣿⣿⣿⣿⣿⣿⡿⠀⠀⠈⠋⠁⠀⣼⣿⣿⣿⣿⡇
⣿⣿⣿⣿⣿⣿⠃⠀⢸⣿⣿⠀⢰⣿⣿⣿⣿⣿