Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146132 毛梦瑶 14能吸多少根烟 Python3 Accepted 33 MS 3764 KB 101 2026-01-26 21:12:16

Tests(10/10):


Code:

n,k=map(int,input().split()) total=n while n>=k: total+=n//k n=n//k+n%k print(total)