Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146134 桂依然 14能吸多少根烟 Python3 Accepted 33 MS 3756 KB 106 2026-01-26 22:10:45

Tests(10/10):


Code:

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