Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 15th, 2019
119
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
n,a,b=map(int, input().split())
c=1
for i in range (1,n+1):
s=i*a
if s <=n:
c+=1
for j in range (1,n+1):
s1=i*b
if s1<=n:
c+=1
print(c)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
EM Operational: Can we edit/review the Semant...
8 hours ago | 0.74 KB
Focus LM
15 hours ago | 1.43 KB
THIS IS ME - THIS IS WHAT I BUILD
1 day ago | 0.04 KB
kMenu Settings
JSON | 2 days ago | 1.41 KB
KDE Customization
2 days ago | 1.36 KB
norm_krimi.py
Python | 2 days ago | 1.91 KB
llms.txt
3 days ago | 0.29 KB
EM Operational: Why was an EDU link built?
4 days ago | 1.18 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!