Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
Kaelygon
Sep 3rd, 2020
(
edited
)
456
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
math
while
1
:
s
=
input
(
)
if
(
len
(
s
)
==
0
)
:
exit
(
0
)
else
:
try
:
a
,
b
=
s.
split
(
)
print
(
math
.
gcd
(
int
(
a
)
,
int
(
b
)
)
)
except
:
print
(
"invalid input"
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Christmas Gift
1 min ago | 0.84 KB
December smells like money (Release)
CSS | 1 min ago | 0.82 KB
Untitled
2 min ago | 0.63 KB
Untitled
6 min ago | 1.05 KB
Untitled
14 min ago | 12.22 KB
Untitled
Lua | 16 min ago | 76.71 KB
Untitled
30 min ago | 0.20 KB
Untitled
31 min ago | 0.47 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!