Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Python by Stas ( 5 years ago )
n, k = map(int, input().split())
if n//k != 0:
    print(n//k+n%k+1)
else:
    print(n//k+n%k)

 

Revise this Paste

Your Name: Code Language: