Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
caramele
a53
Jan 19th, 2020
265
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using namespace std;
int main()
{
long long int c,p,k;
cin>>c>>p;
if(c<p*(p+1)/2)
cout<<c;
else
k=(c-p*(p+1)/2)/p,cout<<c-p*(p+1)/2-k*p;
return 0;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Got $12,000 from this method
CSS | 2 min ago | 1.01 KB
Instant Profits Method
CSS | 2 min ago | 1.01 KB
Get $12,000 from this mehtod
CSS | 3 min ago | 0.86 KB
✅ +12,000$ in 2 days
CSS | 4 min ago | 1.01 KB
✅ Easiest method for beginners
CSS | 4 min ago | 1.01 KB
✅ +12,000$ in 2 days
CSS | 6 min ago | 0.86 KB
BTC SWAP GLITCH
CSS | 26 min ago | 1.01 KB
Exploit Documentation
CSS | 26 min ago | 1.01 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!