GoalScope — get_max_triples (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def get_max_triples(n):↵
"""Return the maximum number of triples (a, b, c) such that a + b + c = n."""↵
count = 0↵
for a in range(1, n - 1):↵
for b in range(a, n - a):↵
c = n - a - b↵
if c >= b:↵
count += 1↵
return count↵
</code>