Datasets:
Download code/math_code_013_verify.py from efe-T/bilingual-math-code-verification-v1: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/datasets/efe-T/bilingual-math-code-verification-v1/resolve/main/code/math_code_013_verify.py
- Command line
-
hf download hf://datasets/efe-T/bilingual-math-code-verification-v1/code/math_code_013_verify.py
-
curl -L -o math_code_013_verify.py https://huggingface.co/datasets/efe-T/bilingual-math-code-verification-v1/resolve/main/code/math_code_013_verify.py
288 Bytes
| candidates = [(x * (120 - 2 * x), x, 120 - 2 * x) for x in range(61)] | |
| area, x, y = max(candidates) | |
| assert sum(a == area for a, _, _ in candidates) == 1 | |
| result = {"x_m": str(x), "y_m": str(y), "area_m2": str(area)} | |
| import json | |
| print(json.dumps(result, ensure_ascii=False, sort_keys=True)) | |