HAPPY804 @ 2023-04-21 15:18:18
a=input().split()
n=0
yan=int(a[0])
di=int(a[1])
c=yan//di
n=n+c+yan
print(n)
by HAPPY804 @ 2023-04-21 15:19:24
python写的,C语言大佬就别插手了
by _Virgo_ @ 2023-04-21 17:03:33
@ckx0804 公式错了
应该是
c=(yan-1)//(di-1)