Download 166/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/166/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/166/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/166/solution/_reference.py
175 Bytes
| def find_even_pair(A): | |
| count = 0 | |
| for i in range(0, len(A)): | |
| for j in range(i+1, len(A)): | |
| if ((A[i] ^ A[j]) % 2 == 0): | |
| count += 1 | |
| return count |