Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146137 谢尚昊 14能吸多少根烟 Python3 Accepted 39 MS 3764 KB 113 2026-01-26 23:02:22

Tests(10/10):


Code:

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