This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
Generated
+7
@@ -0,0 +1,7 @@
|
||||
def split_into_bins(total: Int, per_bin: Int) -> Tuple[Int, Int]:
|
||||
return total % per_bin, total // per_bin
|
||||
|
||||
|
||||
def main():
|
||||
var result = split_into_bins(17, 5)
|
||||
print("bins:", result[0], "left:", result[1])
|
||||
Reference in new issue
Block a user