Download 160/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 143 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/160/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/160/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/160/solution/_reference.py
143 Bytes
| def find_solution(a, b, n): | |
| i = 0 | |
| while i * a <= n: | |
| if (n - (i * a)) % b == 0: | |
| return (i, (n - (i * a)) // b) | |
| i = i + 1 | |
| return None |