Fix: Ensure all skills are tracked as files, not submodules

This commit is contained in:
sck_0
2026-01-14 18:48:48 +01:00
parent 7f46ed8ca1
commit 8bd204708b
1113 changed files with 82065 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
# HumanEval/131
# Loki Mode Multi-Agent Solution
# Attempts: 1
# Passed: True
def digits(n):
"""Given a positive integer n, return the product of the odd digits.
Return 0 if all digits are even.
For example:
digits(1) == 1
digits(4) == 0
digits(235) == 15
"""
product = 1
has_odd = False
while n > 0:
digit = n % 10
if digit % 2 == 1:
product *= digit
has_odd = True
n //= 10
return product if has_odd else 0