Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Excursie0
a53
Dec 27th, 2019
86
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.28 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include<bits/stdc++.h>
using namespace std;
int main()
{
int z,pb,b,pt,t;
cin>>z>>pb>>b>>pt>>t;
for(int i=1;i<=z;i++)
{
pb+=b;
pt+=t;
if(pb==pt)
{
cout<<pb;
return 0;
}
}
cout<<-1;
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $1200 in 15 minutes
JavaScript | 5 sec ago | 0.09 KB
Netflix Premium UHD Hits
JavaScript | 16 sec ago | 0.09 KB
✅ Crypto Accounts
JavaScript | 42 sec ago | 0.09 KB
✅ PayPal Hits
JavaScript | 54 sec ago | 0.09 KB
GMAIL Logs (2FA disabled)
JavaScript | 1 min ago | 0.09 KB
Make $1200 in 15 minutes
JavaScript | 2 min ago | 0.09 KB
Netflix Premium UHD Hits
JavaScript | 2 min ago | 0.09 KB
????Make 3500$ in 1 day [Method]???? XH
Java | 2 min ago | 0.15 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!