Download 127/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 194 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/127/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/127/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/127/solution/_reference.py
194 Bytes
| def multiply_int(x, y): | |
| if y < 0: | |
| return -multiply_int(x, -y) | |
| elif y == 0: | |
| return 0 | |
| elif y == 1: | |
| return x | |
| else: | |
| return x + multiply_int(x, y - 1) |