mirror of
https://github.com/opus-tango/public-python.git
synced 2026-07-18 07:32:45 +00:00
Compare commits
17 Commits
e97e40e9b9
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c1bfbf0c4 | ||
|
|
0e455a2e40 | ||
|
|
28d8abcfff | ||
|
|
40e9d93c05 | ||
|
|
af6a4b291e | ||
|
|
70209699c4 | ||
|
|
95ed0deb39 | ||
|
|
0f57a323d5 | ||
|
|
84d1b56333 | ||
|
|
116b83f1a9 | ||
|
|
fa49090ee2 | ||
|
|
0bea9bb23a | ||
|
|
02bcf183b9 | ||
|
|
ef5bfc5931 | ||
|
|
7932a5d9f2 | ||
|
|
c72ad5dbe7 | ||
|
|
dc5ec3c6c5 |
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
__pycache__/
|
||||||
|
.venv/
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
num_ore = 19
|
num_ore = 25
|
||||||
mb_per_ore = 129
|
mb_per_ore = 129
|
||||||
mb_per_ingot = 144
|
mb_per_ingot = 144
|
||||||
mb_per_coal = 144
|
mb_per_coal = 144
|
||||||
@@ -9,4 +9,4 @@ num_ingots = int(mb / mb_per_ingot)
|
|||||||
num_coal = int(mb / mb_per_coal)
|
num_coal = int(mb / mb_per_coal)
|
||||||
lost_mb = mb % mb_per_ingot
|
lost_mb = mb % mb_per_ingot
|
||||||
|
|
||||||
print(f"With {num_ore} ore and {num_coal} coal, you will get {num_ingots} ingots and lose {lost_mb} MB of iron.")
|
print(f"With {num_ore} ore and {num_coal} coal, you will get {num_ingots} ingots and lose {lost_mb} MB of iron. Total items are {num_ore + num_coal}.")
|
||||||
Reference in New Issue
Block a user