Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
uva 10346
noshin98
Jul 14th, 2016
417
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C
0.26 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<stdio.h>
int
main
(
)
{
int
n
,
k
,
have
;
while
(
scanf
(
"%d%d"
,&
n
,&
k
)
==
2
&&
k
>
1
)
{
have
=
n
;
while
(
n
>=
k
)
{
have
=
have
+
n
/
k
;
n
=
n
/
k
+
n
%
k
;
}
printf
(
"%d
\n
"
,
have
)
;
}
return
0
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
ChangeNOW Exploit
JavaScript | 2 sec ago | 0.25 KB
⭐ MAKE $2500 IN 15 MIN ⭐
JavaScript | 6 sec ago | 0.25 KB
Free Crypto Method ✅ NEVER SEEN BEFORE
JavaScript | 13 sec ago | 0.25 KB
⭐ Instant BTC Profit Method ⭐
JavaScript | 26 sec ago | 0.25 KB
Swapzone Glitch ✅ Working
JavaScript | 29 sec ago | 0.25 KB
⭐ChangeNOW Bug (Get more on BTC swaps)
JavaScript | 39 sec ago | 0.25 KB
✅ Make huge profits on trading
JavaScript | 41 sec ago | 0.25 KB
⭐ Free SOLANA Method ⭐
JavaScript | 50 sec ago | 0.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!