add difficulty where possible (#274)

This commit is contained in:
Zafir Stojanovski 2025-03-07 19:01:26 +01:00 committed by GitHub
parent fb06038e88
commit b915565c0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 46 additions and 14 deletions

View file

@ -42,7 +42,12 @@ class CountBitsDataset(ProceduralDataset):
return {
"question": QUESTION_TEMPLATE.format(number=number),
"answer": str(answer),
"metadata": {"number": number, "solution": answer, "binary": binary},
"metadata": {
"number": number,
"solution": answer,
"binary": binary,
"difficulty": {"n": number},
},
}