s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s956042140 | p02256 | u831244171 | 1493827335 | Python | Python3 | py | Runtime Error | 0 | 0 | 210 | def lcd(a,b): ##return least common multiple of a and b
if a > b:
return lcd(a-b,b)
elif a < b:
return lcd(b-a,a)
elif a == b:
return a
a,b = input().split()
print(lcd(a,b)) |
s327153603 | p02256 | u213265973 | 1494485342 | Python | Python3 | py | Runtime Error | 0 | 0 | 377 | x, y = [int(i) for i in input().split(" ")]
num = []
if x > y:
z = x % y
for zzz in range(z + 1):
if z % zzz == 0 and x % zzz == 0:
num.append(zzz)
print(max(num))
elif y > x:
z = y % x
for zzz in range(z + 1):
if z % zzz == 0 and y % zzz == 0:
num.append(zzz)
print(max(num))
else:
print(x) |
s923280588 | p02256 | u213265973 | 1494485383 | Python | Python3 | py | Runtime Error | 0 | 0 | 368 | x, y = [int(i) for i in input().split(" ")]
num = []
if x > y:
z = x % y
for zzz in range(z + 1):
if z % zzz == 0 and x % zzz == 0:
num.append(zzz)
print(max(num))
elif y > x:
z = y % x
for zzz in range(z + 1):
if z % zzz == 0 and y % zzz == 0:
num.append(zzz)
print(max(num))
else:
print(x) |
s322697535 | p02256 | u213265973 | 1494485399 | Python | Python3 | py | Runtime Error | 0 | 0 | 360 | x, y = [int(i) for i in input().split(" ")]
num = []
if x > y:
z = x % y
for zzz in range(z + 1):
if z % zzz == 0 and x % zzz == 0:
num.append(zzz)
print(max(num))
elif y > x:
z = y % x
for zzz in range(z + 1):
if z % zzz == 0 and y % zzz == 0:
num.append(zzz)
print(max(num))
else:
print(x) |
s715128887 | p02256 | u213265973 | 1494485455 | Python | Python3 | py | Runtime Error | 0 | 0 | 342 | x, y = [int(i) for i in input().split(" ")]
num = []
if x >= y:
z = x % y
for zzz in range(z + 1):
if z % zzz == 0 and x % zzz == 0:
num.append(zzz)
print(max(num))
elif y > x:
z = y % x
for zzz in range(z + 1):
if z % zzz == 0 and y % zzz == 0:
num.append(zzz)
print(max(num)) |
s542204186 | p02256 | u213265973 | 1494485935 | Python | Python3 | py | Runtime Error | 0 | 0 | 185 | def gdc(x, y):
if x % y == 0:
return y
else:
return gdc(x, x%y)
if __name__ == "__main__":
x, y = [int(i) for i in input().split(" ")]
print(gcd(x, y)) |
s400436312 | p02256 | u213265973 | 1494485965 | Python | Python3 | py | Runtime Error | 0 | 0 | 185 | def gdc(x, y):
if x % y == 0:
return y
else:
return gdc(x, x%y)
if __name__ == '__main__':
x, y = [int(i) for i in input().split(" ")]
print(gcd(x, y)) |
s554550528 | p02256 | u905808447 | 1495549013 | Python | Python | py | Runtime Error | 0 | 0 | 170 | def gcd(x, y):
r = 1
for i in range(min(x, y)):
if x % i == 0 and y % i == 0:
r = i
return r
x, y = map(int, re.split(' ', raw_input()))
print(gcd(x, y)) |
s787354830 | p02256 | u905808447 | 1495549056 | Python | Python | py | Runtime Error | 0 | 0 | 186 | def gcd(x, y):
r = 1
for i in range(min(x, y)):
if x % i == 0 and y % i == 0:
r = i
return r
x, y = map(int, re.split(' ', raw_input()))
print(gcd(x, y)) |
s781065366 | p02256 | u905808447 | 1495549082 | Python | Python | py | Runtime Error | 0 | 0 | 189 | def gcd(x, y):
r = 1
for i in range(1, min(x, y)):
if x % i == 0 and y % i == 0:
r = i
return r
x, y = map(int, re.split(' ', raw_input()))
print(gcd(x, y)) |
s154415556 | p02256 | u905808447 | 1495549124 | Python | Python | py | Runtime Error | 0 | 0 | 189 | def gcd(x, y):
r = 1
for i in range(1, min(x, y)):
if x % i == 0 and y % i == 0:
r = i
return r
x, y = map(int, re.split(' ', raw_input()))
print(gcd(x, y)) |
s598446805 | p02256 | u905808447 | 1495549158 | Python | Python | py | Runtime Error | 0 | 0 | 215 | def gcd(x, y):
r = 1
for i in range(1, min(x, y)):
if x % i == 0 and y % i == 0:
r = i
return r
x, y = map(int, re.split(' ', raw_input()))
print('%d %d' % (x, y ))
#print(gcd(x, y)) |
s923831212 | p02256 | u905808447 | 1495549180 | Python | Python | py | Runtime Error | 0 | 0 | 87 |
x, y = map(int, re.split(' ', raw_input()))
print('%d %d' % (x, y ))
#print(gcd(x, y)) |
s652998128 | p02256 | u905808447 | 1495549199 | Python | Python | py | Runtime Error | 0 | 0 | 82 | inputlist = map(int, re.split(' ', raw_input()))
print inputlist
#print(gcd(x, y)) |
s443424990 | p02256 | u905808447 | 1495550243 | Python | Python | py | Runtime Error | 0 | 0 | 318 | def gcd(x, y):
if x == y:
return x
if x < y and y % x:
return x
if x > y and x % y:
return y
r = 1
for i in range(1, int(min(x, y) / 2) + 1):
if x % i == 0 and y % i == 0:
r = i
return r
x, y = map(int, re.split(' ', raw_input()))
print(gcd(x, y)) |
s391822400 | p02256 | u905313459 | 1496139824 | Python | Python3 | py | Runtime Error | 50 | 10112 | 72 | from fractions import gcd
print(gcd(*set(map(int, input().split(" "))))) |
s073651543 | p02256 | u278938795 | 1498725852 | Python | Python | py | Runtime Error | 0 | 0 | 210 | import sys
def gcd(a,b):
temp = a
if a<b:
a=b
b=a
if b==0:
return a
c = a%b
return gcd(b,c)
line = sys.stdin.readline().strip().split(" ")
A = int(line[0])
B = int(line[1])
print(gcd(A,B))
return |
s426354913 | p02256 | u914146430 | 1500521963 | Python | Python3 | py | Runtime Error | 0 | 0 | 174 | XY=list(map(int,input().split()))
x=max(XY)
y=min(XY)
x_dy=x%y
ans=0
if x==y:
ans=x
for d in range(1,(y+1)//2):
if y%d==0 and x_dy%d==0:
ans=d
print(and) |
s811288844 | p02256 | u914146430 | 1500522262 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | import math
XY=list(map(int,input().split()))
x=max(XY)
y=min(XY)
x_dy=x%y
ans=math.gcb(x,x_dy)
print(ans) |
s079730161 | p02256 | u914146430 | 1500522286 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | import math
XY=list(map(int,input().split()))
x=max(XY)
y=min(XY)
x_dy=x%y
ans=math.gcd(x,x_dy)
print(ans) |
s266132597 | p02256 | u350064373 | 1502076243 | Python | Python3 | py | Runtime Error | 0 | 0 | 65 | import math
x, y = map(int,input().split())
print(math.gcd(x, y)) |
s570614947 | p02256 | u988834390 | 1502770908 | Python | Python3 | py | Runtime Error | 0 | 0 | 134 | def gcd(a, b):
if a % b == 0:
return b
else:
return gcd(b, a % b)
N = input().split()
print(gcd(N[0], N[1])) |
s084720661 | p02256 | u988834390 | 1502770925 | Python | Python3 | py | Runtime Error | 0 | 0 | 134 | def gcd(a, b):
if a % b == 0:
return b
else:
return gcd(b, a % b)
N = input().split()
print(gcd(N[0], N[1])) |
s442646650 | p02256 | u821624310 | 1503307465 | Python | Python3 | py | Runtime Error | 0 | 0 | 66 | import math
x, y = map(int, input().split())
print(math.gcd(x, y)) |
s051525876 | p02256 | u853619096 | 1503799185 | Python | Python3 | py | Runtime Error | 20 | 7548 | 211 | z=list(map(int,input().split()))
z.sort()
a=0
while True:
a=z[1]-z[0]
if z[0]%a==0:
z[1] = z[0]
z[0] = a
z.sort()
break
z[1]=z[0]
z[0]=a
z.sort()
print(z[0]) |
s851621988 | p02256 | u853619096 | 1503799286 | Python | Python3 | py | Runtime Error | 30 | 7612 | 211 | z=list(map(int,input().split()))
z.sort()
a=0
while True:
a=z[1]-z[0]
if z[0]%a==0:
z[1] = z[0]
z[0] = a
z.sort()
break
z[1]=z[0]
z[0]=a
z.sort()
print(z[0]) |
s038413438 | p02256 | u354053070 | 1505107043 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | def gcd(x, y):
if x < y:
x, y = y, x
while y > 0:
x, y = y, x % y
return x
x, y = map(int, input().split())
print(gcd(x, y) |
s427076002 | p02256 | u024715419 | 1507258812 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | import math
a = list(map(int,input().split()))
print(math.gcd(a[0],a[1]) |
s524876473 | p02256 | u024715419 | 1507259494 | Python | Python3 | py | Runtime Error | 0 | 0 | 73 | import math
a = list(map(int,input().split()))
print(math.gcd(a[0],a[1])) |
s474223872 | p02256 | u024715419 | 1507259508 | Python | Python3 | py | Runtime Error | 0 | 0 | 73 | import math
a = list(map(int,input().split()))
print(math.gcd(a[0],a[1])) |
s690728747 | p02256 | u450231931 | 1507297033 | Python | Python3 | py | Runtime Error | 20 | 7728 | 271 | num = input().split()
if int(num[0])<int(num[1]):
x = int(num[1])
y = int(num[0])
else:
x = int(num[0])
y = int(num[1])
end = 0
z = x % y
while True:
z1 = y % z
y1 = z
if z1 == 0:
print(z)
break
z = z1
y = y1 |
s954435916 | p02256 | u246756871 | 1507435945 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | def gcd(x, y):
if x<y:
return gcd(y, x)
while x%y!=0:
r = x%y
x, y = y, r
return r
iinfo = map(int, input().split())
print(gcd[info0], info[1])) |
s856023497 | p02256 | u246756871 | 1507435983 | Python | Python3 | py | Runtime Error | 0 | 0 | 180 | def gcd(x, y):
if x<y:
return gcd(y, x)
while x%y!=0:
r = x%y
x, y = y, r
return r
info = map(int, input().split())
print(gcd[info0], info[1])) |
s446155857 | p02256 | u246756871 | 1507436012 | Python | Python3 | py | Runtime Error | 0 | 0 | 181 | def gcd(x, y):
if x<y:
return gcd(y, x)
while x%y!=0:
r = x%y
x, y = y, r
return r
info = map(int, input().split())
print(gcd(info[0], info[1])) |
s042908077 | p02256 | u424457654 | 1508294389 | Python | Python3 | py | Runtime Error | 0 | 0 | 54 | a, b = map(int, input().split())
print(math.gcd(a, b)) |
s648715631 | p02256 | u626266743 | 1508294403 | Python | Python3 | py | Runtime Error | 0 | 0 | 54 | a, b = map(int, input().split())
print(math.gcd(a, b)) |
s805295686 | p02256 | u424457654 | 1508294531 | Python | Python3 | py | Runtime Error | 0 | 0 | 48 | a, b = map(int, iput().split())
print(gcd(a, b)) |
s515318570 | p02256 | u626266743 | 1508294593 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | a, b = map(int, input().split())
if a, b != 0:
print(math.gcd(a, b)) |
s530182814 | p02256 | u626266743 | 1508294691 | Python | Python3 | py | Runtime Error | 0 | 0 | 54 | a, b = map(int, input().split())
print(math.gcd(a, b)) |
s113475310 | p02256 | u626266743 | 1508852484 | Python | Python3 | py | Runtime Error | 0 | 0 | 49 | x, y = map(int, input().split())
print(gcd(x, y)) |
s943180578 | p02256 | u626266743 | 1508852670 | Python | Python3 | py | Runtime Error | 0 | 0 | 75 | x, y = map(int, input().split())
while x > 0 :
x, y = y, x % y
print(x) |
s051868864 | p02256 | u424457654 | 1508896892 | Python | Python3 | py | Runtime Error | 0 | 0 | 168 | x, y = map(int, input().split())
while True:
if x >= y:
x = x % y
else:
y = y % x
if x % y == 0:
print(x)
break
elif y % x == 0:
print(y)
|
s930560170 | p02256 | u197670577 | 1509029056 | Python | Python | py | Runtime Error | 0 | 0 | 102 | x, y = map(int, raw_input().split())
if x < y:
x, y = y, x
while y != 0
x, y = y, x%y
print x |
s038130997 | p02256 | u865281338 | 1511357671 | Python | Python3 | py | Runtime Error | 0 | 0 | 203 | def main ()
x, y =[int(i) for i in input().split().sort(reverse = True )]
while x%y != 0 :
x, y =[x%y x.sort(reverse = True)]
print(y)
if __name__=='__main__':
def main() |
s042986094 | p02256 | u865281338 | 1511357889 | Python | Python3 | py | Runtime Error | 0 | 0 | 178 | def main ()
x, y =[int(i) for i in input().split().sort(reverse = True )]
while y != 0 :
x, y = y, x%y
print(x)
if __name__=='__main__':
def main() |
s319537082 | p02256 | u865281338 | 1511357966 | Python | Python3 | py | Runtime Error | 0 | 0 | 152 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
def main() |
s494452422 | p02256 | u865281338 | 1511357991 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
def main() |
s559946251 | p02256 | u865281338 | 1511358034 | Python | Python3 | py | Runtime Error | 0 | 0 | 160 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
def main() |
s863568253 | p02256 | u865281338 | 1511358042 | Python | Python3 | py | Runtime Error | 0 | 0 | 164 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
def main() |
s759651279 | p02256 | u865281338 | 1511358108 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
def main() |
s324855584 | p02256 | u865281338 | 1511358147 | Python | Python3 | py | Runtime Error | 0 | 0 | 163 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
def main() |
s828200617 | p02256 | u865281338 | 1511358341 | Python | Python3 | py | Runtime Error | 0 | 0 | 151 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
main() |
s330907569 | p02256 | u865281338 | 1511358438 | Python | Python3 | py | Runtime Error | 0 | 0 | 160 | def main()
x, y =[int(i) for i in input().split()]
while y != 0 :
x, y = y, x%y
print(x)
if __name__ == '__main__':
main() |
s004327869 | p02256 | u747709646 | 1511425670 | Python | Python | py | Runtime Error | 0 | 0 | 300 | dbg = False
a, b = list(map(int, input().split()))
if a > b:
x, y = a, b
else:
x, y = b, a
for i in range(1, int((y+1)/2)+1):
if y % i == 0:
gcd_tmp = int(y / i)
if dbg: print(gcd_tmp)
if x % gcd_tmp == 0:
print(gcd_tmp)
exit()
print(1) |
s301801605 | p02256 | u500386459 | 1512108239 | Python | Python | py | Runtime Error | 0 | 0 | 235 | def gcd(a, b):
if a < b:
tmp = a
a = b
b = tmp
r = a % b
while r != 0:
a = b
b = r
r = a % b
return b
if __name__ == '__main__':
l = list(map(int, input().split()))
x = l[0]
y = l[1]
ans = gcd(x, y)
print(ans) |
s533315853 | p02256 | u845015409 | 1512460119 | Python | Python | py | Runtime Error | 0 | 0 | 235 | def gcd(a, b):
if a < b:
tmp = a
a = b
b = tmp
r = a % b
while r != 0:
a = b
b = r
r = a % b
return b
if __name__ == '__main__':
l = list(map(int, input().split()))
x = l[0]
y = l[1]
ans = gcd(x, y)
print(ans) |
s342888577 | p02256 | u183079216 | 1513339662 | Python | Python3 | py | Runtime Error | 20 | 5600 | 130 | a,b=[int(x) for x in input().split()]
x = max(a,b)
y = min(a,b)
while x % y >0:
res = x % y
x = y
y = res
print(res) |
s733852170 | p02256 | u183079216 | 1513339930 | Python | Python3 | py | Runtime Error | 20 | 5604 | 126 | a,b=[int(x) for x in input().split()]
x = max(a,b)
y = min(a,b)
while x%y>0:
res = x%y
x = y
y = res
print(res) |
s876072259 | p02256 | u183079216 | 1513340117 | Python | Python3 | py | Runtime Error | 0 | 0 | 110 | a,b=[int(x) for x in input().split()]
x = max(a,b)
y = min(a,b)
while x%y>0:
x = y
y = x%y
print(y) |
s693186914 | p02256 | u146752763 | 1513677814 | Python | Python | py | Runtime Error | 10 | 4664 | 392 | # coding:utf-8
def gcd(x,y):
a = x % y
y_ans = []
two_ans = []
for i in range(1,y + 1):
if y % i == 0:
y_ans.append(i)
for i in range(1,a + 1):
if a % i == 0:
two_ans.append(i)
yset = set(y_ans)
twoset = set(two_ans)
matched = list(yset & twoset)
print max(matched)
n = map(int, raw_input().split())
gcd(n[0],n[1]) |
s533304374 | p02256 | u146752763 | 1513677833 | Python | Python | py | Runtime Error | 10 | 4660 | 392 | # coding:utf-8
def gcd(x,y):
a = x % y
y_ans = []
two_ans = []
for i in range(1,y + 1):
if y % i == 0:
y_ans.append(i)
for i in range(1,a + 1):
if a % i == 0:
two_ans.append(i)
yset = set(y_ans)
twoset = set(two_ans)
matched = list(yset & twoset)
print max(matched)
n = map(int, raw_input().split())
gcd(n[0],n[1]) |
s143832828 | p02256 | u146752763 | 1513678130 | Python | Python | py | Runtime Error | 0 | 0 | 499 | # coding:utf-8
def gcd(x,y):
if x == y:
print x
return
else if x < y:
t = x
x = y
y = t
a = x % y
y_ans = []
two_ans = []
for i in range(1,y + 1):
if y % i == 0:
y_ans.append(i)
for i in range(1,a + 1):
if a % i == 0:
two_ans.append(i)
yset = set(y_ans)
twoset = set(two_ans)
matched = list(yset & twoset)
print max(matched)
n = map(int, raw_input().split())
gcd(n[0],n[1]) |
s968049178 | p02256 | u874332113 | 1515404223 | Python | Python3 | py | Runtime Error | 180 | 55272 | 183 | # naive
x, y = map(int, input().split())
s = min(x,y)
l = max(x,y)
for i in list(range(s+1)[::-1]):
if s % i == 0:
if l % i == 0:
print(i)
break
|
s388468389 | p02256 | u343251190 | 1516172483 | Python | Python3 | py | Runtime Error | 0 | 0 | 211 | def gcd(a, b):
a, b = max(a, b), min(a, b)
while(b != 0):
a, b = b, a%b
print(a, b)
import sys
for line in sys.stdin:
a, b = map(int, input().split())
print(a, b)
gcd(a, b)
|
s493613372 | p02256 | u749243807 | 1516860693 | Python | Python3 | py | Runtime Error | 0 | 0 | 154 | data = [int(n) for n in input()];
def gcd(m, n):
m = m % n;
if m == 0:
return n;
return gcd(n, m);
print(gcd(max(data), min(data));
|
s089165430 | p02256 | u749243807 | 1516860729 | Python | Python3 | py | Runtime Error | 0 | 0 | 165 | data = [int(n) for n in input().split(" ")];
def gcd(m, n):
m = m % n;
if m == 0:
return n;
return gcd(n, m);
print(gcd(max(data), min(data));
|
s324112296 | p02256 | u770698847 | 1517552839 | Python | Python | py | Runtime Error | 10 | 4656 | 424 | # coding: UTF-8
def common_divisor(x,y):
if x >= y:
x = x % y
for i in range(1,x):
if y % i == 0 and x % i == 0:
divisor = i
return divisor
else:
for i in range(1,x):
if y % i == 0 and x % i == 0:
divisor = i
return divisor
num1,num2 = raw_input().split()
maximam = common_divisor(int(num1), int(num2))
print(maximam)
|
s832512208 | p02256 | u770698847 | 1517554666 | Python | Python | py | Runtime Error | 0 | 0 | 838 | # coding: UTF-8
def common_div(x,y):
divisor = 0
x_mul = 0
if x > y:
x = x % y
for i in range(1,x+1):
if y % i == 0 and x % i == 0:
divisor = i
return divisor
elif x == y:
divisor = x
return divisor
else:
for i in [2,3,5,7]:
if x % i == 0:
x_mul = i
if x_mul != 0:
for j in x_mul * range(1,x+1):
if y % j == 0 and x % j == 0:
divisor = j
if x <= j:
break
return divisor
else:
for k in range(1,x+1):
if y % i == 0 and x % i == 0:
divisor = i
return divisor
num1,num2 = raw_input().split()
maximam = common_div(int(num1), int(num2))
print(maximam)
|
s533700816 | p02256 | u650712316 | 1517555237 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | in = input().split()
A = int(in[0])
B = int(in[1])
if A < B:
v = B
B = A
A = v
R = A % B
while R !=0:
R = A % B
A = B
B = R
return A
|
s840889154 | p02256 | u177808190 | 1517573792 | Python | Python3 | py | Runtime Error | 20 | 5600 | 246 | def gcd(x, y):
if x < y:
x = tmp
x = y
y = tmp
while y > 0:
r = x % y
x = y
y = r
return x
if __name__ == '__main__':
a, b = [int(x) for x in input().split()]
print (gcd(a, b))
|
s508161271 | p02256 | u177808190 | 1517573802 | Python | Python3 | py | Runtime Error | 20 | 5600 | 246 | def gcd(x, y):
if x < y:
x = tmp
x = y
y = tmp
while y > 0:
r = x % y
x = y
y = r
return x
if __name__ == '__main__':
a, b = [int(x) for x in input().split()]
print (gcd(a, b))
|
s892427190 | p02256 | u299231628 | 1519285106 | Python | Python3 | py | Runtime Error | 0 | 0 | 305 | def isprime(n):
if n < 2: return 0
elif n == 2: return 1
if n % 2 == 0: return 0
for i in range(3, n, 2):
if i >= n/i: return 1
if n % i == 0 : return 0
return 1
N = int(input())
n = [int(input()) for i in range(N)]
a = [i for i in n if isprime(i)]
print(len(a))
|
s403424874 | p02256 | u464859367 | 1522056527 | Python | Python3 | py | Runtime Error | 0 | 0 | 124 | n = input().split()
x = n[0]
y = n[1]
if x < y:
x, y = y, x
while y > 0:
r = x % y
x = y
y = r
print(x)
|
s472021472 | p02256 | u269391636 | 1523283373 | Python | Python | py | Runtime Error | 0 | 0 | 127 | a = input(),split()
t , u = int(a[0]),int(b[0])
def c(x,y):
if x % y:
return c(y,x%y)
else:
return y
print(c(t,u))
|
s979458292 | p02256 | u269391636 | 1523283391 | Python | Python | py | Runtime Error | 0 | 0 | 127 | a = input().split()
t , u = int(a[0]),int(b[0])
def c(x,y):
if x % y:
return c(y,x%y)
else:
return y
print(c(t,u))
|
s585219314 | p02256 | u269391636 | 1523283434 | Python | Python3 | py | Runtime Error | 0 | 0 | 127 | a = input().split()
t , u = int(a[0]),int(b[0])
def c(x,y):
if x % y:
return c(y,x%y)
else:
return y
print(c(t,u))
|
s385121913 | p02256 | u269391636 | 1523283470 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | a = input().split()
t , u = int(a[0]),int(b[0])
def c(x,y):
if x % y:
return(c(y,x%y))
else:
return(y)
print(c(t,u))
|
s353740887 | p02256 | u269391636 | 1523283651 | Python | Python3 | py | Runtime Error | 0 | 0 | 147 | a = list(map(int, input().split()))
t , u = int(a[0]),int(b[0])
def c(x,y):
if x % y:
return(c(y,x%y))
else:
return(y)
print(c(t,u))
|
s255680317 | p02256 | u269391636 | 1523283742 | Python | Python | py | Runtime Error | 0 | 0 | 137 | a = list(map(int, input().split()))
t , u = a[0],a[1]
def c(x,y):
if x % y:
return(c(y,x%y))
else:
return(y)
print(c(t,u))
|
s853407988 | p02256 | u269391636 | 1523283764 | Python | Python | py | Runtime Error | 0 | 0 | 137 | a = list(map(int, input().split()))
t , u = a[0],a[1]
def c(x,y):
if x % y:
return(c(y,x%y))
else:
return(y)
print(c(t,u))
|
s906570431 | p02256 | u269391636 | 1523283786 | Python | Python | py | Runtime Error | 0 | 0 | 136 | a = list(map(int, input().split()))
t , u = a[0],a[1]
def c(x,y):
if x % y:
return(c(y,x%y))
else:
return(y)
print(u//20)
|
s727453973 | p02256 | u269391636 | 1523283824 | Python | Python | py | Runtime Error | 0 | 0 | 137 | a = list(map(int, input().split()))
t , u = a[0],a[1]
def c(x,y):
if x % y:
return(c(y,x%y))
else:
return(y)
print(c(t,u))
|
s386934002 | p02256 | u498211963 | 1523292923 | Python | Python3 | py | Runtime Error | 0 | 0 | 79 | import math
a=read().split()
b=list(map(int,a))
print(math.gcd(b[0],b[1]),\n)
|
s574219777 | p02256 | u498211963 | 1523292995 | Python | Python3 | py | Runtime Error | 0 | 0 | 72 | import math
a=read()
b=a.split
print(math.gcd(int(b[0]),int(b[1])),\n)
|
s990008798 | p02256 | u017435045 | 1523942539 | Python | Python3 | py | Runtime Error | 0 | 0 | 125 | x, y = [int(x) for x in input().split()]
def gcd(a,b):
m = a%b
return gcd(b,m) if r else n
print(gcd(x,y))
|
s170026663 | p02256 | u017435045 | 1523942542 | Python | Python3 | py | Runtime Error | 0 | 0 | 125 | x, y = [int(x) for x in input().split()]
def gcd(a,b):
m = a%b
return gcd(b,m) if r else n
print(gcd(x,y))
|
s344367539 | p02256 | u252641015 | 1524038285 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | def gcd(x,y):
if y==0:
return x
else:
return gcd(y,x%y)
x,y=map(int,raw_input().split())
print(gcd(x,y))
|
s692309367 | p02256 | u252641015 | 1524038352 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | def gcd(x,y):
if y==0:
return x
else:
return gcd(y,x%y)
x,y=map(int,raw_input().split())
print(gcd(x,y))
|
s315302108 | p02256 | u252641015 | 1524038442 | Python | Python3 | py | Runtime Error | 0 | 0 | 131 | def gcd(x,y):
if y==0:
return x
else:
return gcd(y,x%y)
x,y=map(int,raw_input().split())
print(gcd(x,y))
|
s515184674 | p02256 | u477717106 | 1524039269 | Python | Python3 | py | Runtime Error | 0 | 0 | 115 | line=input().split()
x=int(line[0])
y=int(line[1])
r=x%y
while(r>0):
x=y
y=r
r=x%y
return y
print(y)
|
s989144490 | p02256 | u896240461 | 1524039371 | Python | Python3 | py | Runtime Error | 20 | 5596 | 170 | def gcd(x,y):
if x < y:
swap(x,y)
while y > 0:
r = x % y
x = y
y = r
return x
x,y = map(int,input().split())
print(gcd(x,y))
|
s811741399 | p02256 | u684325232 | 1524039582 | Python | Python | py | Runtime Error | 0 | 0 | 108 | list=[int(i) for i in input().split()]
a=list[0]
b=list[1]
while a%b!=0:
c=a%b
a=b
b=c
print(c)
|
s044949900 | p02256 | u684325232 | 1524039624 | Python | Python3 | py | Runtime Error | 20 | 5604 | 108 | list=[int(i) for i in input().split()]
a=list[0]
b=list[1]
while a%b!=0:
c=a%b
a=b
b=c
print(c)
|
s637081684 | p02256 | u776834150 | 1524039820 | Python | Python3 | py | Runtime Error | 0 | 0 | 197 | line=input().split()
x=int(line[0])
y=int(line[1])
if x<y:
temp=x
x=y
y=temp
def greatst(x,y):
if x==y:
return x
else:
return greatst(y,x%y)
print(greatst(x,y))
|
s438377023 | p02256 | u684325232 | 1524040334 | Python | Python | py | Runtime Error | 0 | 0 | 225 | list=[int(i) for i in input().split()]
if list[0]>list[1]:
a=list[0]
b=list[1]
else:
b=list[0]
a=list[1]
if a%b==0:
print (b)
else:
while a%b!=0:
c=a%b
a=b
b=c
print(c)
|
s621822783 | p02256 | u684325232 | 1524040343 | Python | Python | py | Runtime Error | 0 | 0 | 225 | list=[int(i) for i in input().split()]
if list[0]>list[1]:
a=list[0]
b=list[1]
else:
b=list[0]
a=list[1]
if a%b==0:
print (b)
else:
while a%b!=0:
c=a%b
a=b
b=c
print(c)
|
s531456197 | p02256 | u684325232 | 1524040380 | Python | Python | py | Runtime Error | 0 | 0 | 229 | list=[int(i) for i in input().split()]
if list[0]>list[1]:
a=list[0]
b=list[1]
else:
b=list[0]
a=list[1]
if a%b==0:
print (b)
else:
while a%b!=0:
c=a%b
a=b
b=c
print(c)
|
s627351248 | p02256 | u684325232 | 1524040391 | Python | Python | py | Runtime Error | 0 | 0 | 229 | list=[int(i) for i in input().split()]
if list[0]>list[1]:
a=list[0]
b=list[1]
else:
b=list[0]
a=list[1]
if a%b==0:
print (b)
else:
while a%b!=0:
c=a%b
a=b
b=c
print(c)
|
s955044470 | p02256 | u684325232 | 1524040824 | Python | Python | py | Runtime Error | 0 | 0 | 223 | list=[int(i) for i in input().split()]
if list[0]>list[1]:
a=list[0]
b=list[1]
else:
b=list[0]
a=list[1]
if a%b==0:
print (b)
else:
while b>0:
c=a%b
a=b
b=c
print(a)
|
s958431100 | p02256 | u684325232 | 1524040833 | Python | Python | py | Runtime Error | 0 | 0 | 223 | list=[int(i) for i in input().split()]
if list[0]>list[1]:
a=list[0]
b=list[1]
else:
b=list[0]
a=list[1]
if a%b==0:
print (b)
else:
while b>0:
c=a%b
a=b
b=c
print(a)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.