Files
pplus-web/mojo/corpus/quest/starters/MQ_302.mojo
T
2026-10-05 03:03:38 +00:00

8 lines
215 B
Mojo

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])