Download code/test/Python/0006141_part1.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/code/test/Python/0006141_part1.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/code/test/Python/0006141_part1.py
-
curl -L -o 0006141_part1.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/code/test/Python/0006141_part1.py
272 Bytes
| with open('input') as input: | |
| wynik = 0 | |
| for line in input: | |
| splitted = line.split('x') | |
| splitted_int = list(map(int, splitted)) | |
| splitted_int.sort() | |
| w = splitted_int[0] | |
| l = splitted_int[1] | |
| h = splitted_int[2] | |
| wynik += 2*l*w + 2*w*h + 2*h*l + w*l | |
| print (wynik) |