rev/virtual_machine_0
This commit is contained in:
parent
82dcc622d9
commit
29dc2db38e
1303
rev/virtual_machine_0/Virtual-Machine-0.dae
Normal file
1303
rev/virtual_machine_0/Virtual-Machine-0.dae
Normal file
File diff suppressed because one or more lines are too long
BIN
rev/virtual_machine_0/blender_screenshot_1.png
Normal file
BIN
rev/virtual_machine_0/blender_screenshot_1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 195 KiB |
BIN
rev/virtual_machine_0/blender_screenshot_2.png
Normal file
BIN
rev/virtual_machine_0/blender_screenshot_2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
1
rev/virtual_machine_0/input.txt
Normal file
1
rev/virtual_machine_0/input.txt
Normal file
@ -0,0 +1 @@
|
||||
39722847074734820757600524178581224432297292490103996085769154356559546905
|
11
rev/virtual_machine_0/solve.py
Executable file
11
rev/virtual_machine_0/solve.py
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
INPUT_WHEEL_TEETH = 40
|
||||
OUTPUT_WHEEL_TEETH = 8
|
||||
|
||||
with open('input.txt') as file:
|
||||
content = file.read().strip()
|
||||
|
||||
rotation_output = int(content) * (INPUT_WHEEL_TEETH // OUTPUT_WHEEL_TEETH)
|
||||
|
||||
print(rotation_output.to_bytes((rotation_output.bit_length() + 7) // 8, 'big').decode())
|
Loading…
Reference in New Issue
Block a user