s_id
string
p_id
string
u_id
string
date
string
language
string
original_language
string
filename_ext
string
status
string
cpu_time
string
memory
string
code_size
string
code
string
error
string
stdout
string
s666998523
p00005
u546285759
1500500100
Python
Python3
py
Runtime Error
0
0
167
import math while True: try: a, b = map(int, input().split()) except: break gcd = math.gcd(a, b) lcm = (a*b) // gcd print(gcd, lcm)
s560387968
p00005
u546285759
1500500247
Python
Python3
py
Runtime Error
0
0
175
import math while True: try: a, b = sorted(map(int, input().split())) except: break gcd = math.gcd(a, b) lcm = (a*b) // gcd print(gcd, lcm)
s371382983
p00005
u350064373
1501469615
Python
Python3
py
Runtime Error
0
0
123
import math while True: a,b = map(int, input().split()) print(str(math.gcd(a, b))+" "+str(a * b // math.gcd(a, b)))
Traceback (most recent call last): File "/tmp/tmp_91iufr2/tmph_4a4fc_.py", line 3, in <module> a,b = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s500718502
p00005
u350064373
1501469848
Python
Python3
py
Runtime Error
0
0
109
import math while True: a,b = map(int, input().split()) print(math.gcd(a, b),a * b // math.gcd(a, b))
Traceback (most recent call last): File "/tmp/tmp9s9ku6if/tmpqrsltcd1.py", line 3, in <module> a,b = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s318435557
p00005
u498511622
1501469860
Python
Python3
py
Runtime Error
0
0
95
import math while True: a,b=map(int,input().split()) print(math.gcd(a,b),a*b//math.gcd(a,b))
Traceback (most recent call last): File "/tmp/tmp316hqll7/tmpbm1okhbh.py", line 4, in <module> a,b=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s285690569
p00005
u498511622
1501470076
Python
Python3
py
Runtime Error
0
0
103
import math while True a,b=map(int,input().split()) print(math.gcd(a,b),a*b//math.gcd(a,b)) print()
File "/tmp/tmp_2un45kv/tmp91lnbj8s.py", line 3 while True ^ SyntaxError: expected ':'
s183169718
p00005
u350064373
1501470138
Python
Python3
py
Runtime Error
0
0
161
import math while True: try: a,b = map(int, input().split()) print(math.gcd(a, b),a * b // math.gcd(a, b)) except EOFError: break
s421430853
p00005
u350064373
1501474868
Python
Python3
py
Runtime Error
0
0
187
import math try: while True: a,b = map(int, input().split()) print(math.gcd(a, b), a*b // math.gcd(a, b)) except: pass
File "/tmp/tmpeubd1yqe/tmp1ywcrt39.py", line 2 try: IndentationError: unexpected indent
s842333117
p00005
u498511622
1501474885
Python
Python3
py
Runtime Error
0
0
123
import math try: while True: a,b=map(int,input().split()) print(math.gcd(a,b),a*b// math.gcd(a, b)) except: pass
File "/tmp/tmpqadv9uz4/tmpfwsj74w9.py", line 4 while True: ^ IndentationError: expected an indented block after 'try' statement on line 3
s448887663
p00005
u498511622
1501509387
Python
Python3
py
Runtime Error
0
0
129
import math try: while 1: a,b=map(int,input().split()) print(math.gcd(a,b),a*b// math.gcd(a, b)) except EOFError: pass
s146682527
p00005
u498511622
1501509474
Python
Python3
py
Runtime Error
0
0
131
import math try: while True: a,b=map(int,input().split()) print(math.gcd(a,b),a*b// math.gcd(a, b)) except EOFError: pass
s816813806
p00005
u354053070
1501676522
Python
Python3
py
Runtime Error
0
0
155
from math import gcd import sys for line in sys.stdin: a, b = list(map(int, line.split())) print("{0} {1}".format(gcd(a, b), (a * b) / gcd(a, b)))
s178562072
p00005
u354053070
1501676632
Python
Python3
py
Runtime Error
0
0
160
from math import gcd import sys for line in sys.stdin: a, b = list(map(int, line.split())) print("{0} {1}".format(gcd(a, b), int((a * b) / gcd(a, b))))
s966655677
p00005
u267909338
1502846384
Python
Python3
py
Runtime Error
0
0
349
try: GCD = 0 LCM = 0 while True: lists = list(map(int, input().split())) l = sorted(lists) num = l[0] * l[1] while l[0] < l[1]: GCD = l[1] - l[0] l[1] = GCD l = sorted(l) LCM = int(num / GCD print(str(GCD) + " " + str(LCM)) except EOFError: pass
File "/tmp/tmpvd7_wlk1/tmpw6wojdur.py", line 12 LCM = int(num / GCD ^ SyntaxError: '(' was never closed
s082594419
p00005
u584777171
1502933091
Python
Python3
py
Runtime Error
0
0
264
while 1 == 1: a, b = map(int, input().split()) d = a * b if a < b: tmp = a a = b b = tmp c = a % b while(c != 0): a = b b = c c = a % b g = b l = d / g print(str(g)+" "+str(int(l)))
Traceback (most recent call last): File "/tmp/tmp6d1dj2r4/tmpzl1wreb1.py", line 2, in <module> a, b = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s693106897
p00005
u584777171
1502933177
Python
Python3
py
Runtime Error
0
0
285
import sys for line in sys.stdin: a, b = map(int, input().split()) d = a * b if a < b: tmp = a a = b b = tmp c = a % b while(c != 0): a = b b = c c = a % b g = b l = d / g print(str(g)+" "+str(int(l)))
s608713578
p00005
u821624310
1502960072
Python
Python3
py
Runtime Error
0
0
161
import fileinput import math for line in fileinput.input(): a, b = map(int, line.split()) gcd = math.gcd(a, b) lcm = a * b // gcd print(gcd, lcm)
s071787184
p00005
u821624310
1502961190
Python
Python3
py
Runtime Error
0
0
216
import fileinput import math for line in fileinput.input(): if line == "\n": break else: a, b = map(int, line.split()) g = math.gcd(a, b) lcm = a * b // g print(g, lcm)
s126222994
p00005
u234052535
1503225974
Python
Python3
py
Runtime Error
0
0
579
# This program computes GCD and LCM # -*- coding: utf-8 import sys def gcd(a, b): while True: tmpb = b b = a % b a = tmpb if(b == 1): break return a def lcm(a, b): for i in range(max([a, b]), a*b + 1): if(i % a == 0 and i % b == 0): return i return a*b for i in sys.stdin: try: line = [int(k) for k in i.split(" ")] g = gcd(line[0], line[1]) print(str(g) + " " + str(int(line[0]*line[1]//g))) # + str(lcm(line[0], line[1])) except: raise exit()
s657627522
p00005
u234052535
1503226010
Python
Python3
py
Runtime Error
0
0
574
# This program computes GCD and LCM # -*- coding: utf-8 import sys def gcd(a, b): while True: tmpb = b b = a % b a = tmpb if(b == 1): break return a def lcm(a, b): for i in range(max([a, b]), a*b + 1): if(i % a == 0 and i % b == 0): return i return a*b for i in sys.stdin: try: line = [int(k) for k in i.split(" ")] g = gcd(line[0], line[1]) print(str(g) + " " + str(line[0]*line[1]//g)) # + str(lcm(line[0], line[1])) except: raise exit()
s001809194
p00005
u234052535
1503226138
Python
Python3
py
Runtime Error
0
0
577
# This program computes GCD and LCM # -*- coding: utf-8 import sys def gcd(a, b): while True: tmpb = b b = a % b a = tmpb if(b == 1): break return a def lcm(a, b): for i in range(max([a, b]), a*b + 1): if(i % a == 0 and i % b == 0): return i return a*b for i in sys.stdin: try: line = [int(k) for k in i.split(" ")] g = gcd(max(line), min(line)) print(str(g) + " " + str(line[0]*line[1]/g)) # + str(lcm(line[0], line[1])) except: raise exit()
s270440845
p00005
u234052535
1503226238
Python
Python3
py
Runtime Error
0
0
501
# This program computes GCD and LCM # -*- coding: utf-8 import sys def gcd(a, b): while b: a, b = b, a % b return a def lcm(a, b): for i in range(max([a, b]), a*b + 1): if(i % a == 0 and i % b == 0): return i return a*b for i in sys.stdin: try: line = [int(k) for k in i.split(" ")] g = gcd(max(line), min(line)) print(str(g) + " " + str(line[0]*line[1]/g)) # + str(lcm(line[0], line[1])) except: raise exit()
File "/tmp/tmpt1qkjx0k/tmpj43ndpi7.py", line 8 a, b = b, a % b TabError: inconsistent use of tabs and spaces in indentation
s558609829
p00005
u508732591
1503620402
Python
Python3
py
Runtime Error
0
0
120
import sys for s in sys.stdin: g,r=m,n = map(int,s.split()) while r!=0: g,r = r,g%r print(g,m//g*n)
s520749841
p00005
u264972437
1503652531
Python
Python3
py
Runtime Error
0
0
177
import math import sys for line in sys.stdin.readlines(): #for line in data.split('\n'): x,y = [int(s) for s in line.split(' ')] G = math.gcd(x,y) L = int(x*y/G) print(G,L)
s333588120
p00005
u855694108
1504091117
Python
Python3
py
Runtime Error
0
0
242
import sys import math def main(): for line in sys.stdin: a,b = map(int, line.split()) output1 = math.gcd(a, b) output2 = int(a * b / output1) print(output1, output2) if __name__ == "__main__": main()
s163437561
p00005
u855694108
1504091205
Python
Python3
py
Runtime Error
0
0
217
import sys import math def main(): for line in sys.stdin: a,b = map(int, line.split()) o1 = math.gcd(a, b) o2 = int(a * b / o1) print(o1, o2) if __name__ == "__main__": main()
s600443814
p00005
u123964252
1504092079
Python
Python3
py
Runtime Error
0
0
386
import math lst = [] for i in range(200): try: lst.append(input()) except EOFError: break nums = [list(map(int, elem.split(' '))) for elem in lst] # gcd res_gcd = [math.gcd(num[0], num[1]) for num in nums] # lcm res_lcm = [nums[i][0] * nums[i][1] // res_gcd[i] for i in range(len(nums))] for (a, b) in zip(res_gcd, res_lcm): print('{} {}'.format(a, b))
s655247508
p00005
u506705885
1506437695
Python
Python3
py
Runtime Error
0
0
546
ans=[] while True: try: mins=0 maxs=0 nums=input().split() nums[0]=int(nums[0]) nums[1]=int(nums[1]) nums_copy=nums.copy() while True: if nums[0]%nums[1]==0: maxs=nums[1] break num=nums[1] nums[1]=nums[0]%nums[1] nums[0]=num mins=nums_copy[0]*nums_copy[1]/maxs ans.append(maxs) ans.append(mins) except: break for i in range(len(ans)/2): print(ans[i*2],ans[i*2+1])
Traceback (most recent call last): File "/tmp/tmp9h_m_bqd/tmpseugvtmy.py", line 23, in <module> for i in range(len(ans)/2): ^^^^^^^^^^^^^^^^^ TypeError: 'float' object cannot be interpreted as an integer
s493659231
p00005
u506705885
1506437808
Python
Python3
py
Runtime Error
0
0
267
while True: ????????try: ????????????????(a, b) = map(int, input().split(" ")) ????????????????(x, y) = (a, b) ????????????????while (x != 0): ????????????????????????(x, y) = (y%x, x) ????????????????print("%s %s" %(y, a*b//y)) ????????except: ????????????????break
File "/tmp/tmph3fcdg7a/tmpuopuxz56.py", line 3 ????????try: ^ IndentationError: expected an indented block after 'while' statement on line 2
s379368993
p00005
u742505495
1507699596
Python
Python3
py
Runtime Error
0
0
217
import math import sys while True: try: a,b = map(int, input().split()) x = math.gcd(a,b) i = 1 while True: if a*i%b == 0: y = a*i break else: i = i+1 print(x,y) except EOFError: break
s597197478
p00005
u742505495
1507700072
Python
Python3
py
Runtime Error
0
0
217
import math import sys while True: try: a,b = map(int, input().split()) x = math.gcd(a,b) i = 1 while True: if a*i%b == 0: y = a*i break else: i = i+1 print(x,y) except EOFError: break
s581201989
p00005
u256256172
1508402831
Python
Python3
py
Runtime Error
0
0
249
while True: a,b = map(int, input().split()) if a < b: a,b = b,a def gcd(x,y): while y > 0: x,y = y,x%y return x def lcm(x,y): return x * y / gcd(x, y) print(gcd(a,b), int(lcm(a,b)))
Traceback (most recent call last): File "/tmp/tmptk3wjzbs/tmpov_8zsrw.py", line 2, in <module> a,b = map(int, input().split()) ^^^^^^^ EOFError: EOF when reading a line
s676778633
p00005
u917432951
1510721876
Python
Python3
py
Runtime Error
0
0
195
import math, sys def lcm(a,b): return int(a*b/math.gcd(a,b)) if __name__ == '__main__': for line in sys.stdin: (a,b) = map(int,line.split()) print(math.gcd(a,b),lcm(a,b))
s540017279
p00005
u917432951
1510722236
Python
Python3
py
Runtime Error
0
0
193
import math, sys def lcm(a,b): return int(a*b/math.gcd(a,b)) if __name__ == '__main__': for line in sys.stdin: a,b = map(int,line.split()) print(math.gcd(a,b),lcm(a,b))
s572718848
p00005
u917432951
1510722596
Python
Python3
py
Runtime Error
0
0
198
import math, sys def lcm(a,b): return int(a*b/math.gcd(a,b)) if __name__ == '__main__': for line in sys.stdin: a,b = map(int,line.split()) print(int(math.gcd(a,b)),lcm(a,b))
s451321793
p00005
u011621222
1511512891
Python
Python3
py
Runtime Error
0
0
137
import sys import math for line in sys.stdin: a, b = map(int, line.split(' ')) gcd = math.gcd(a, b) print(gcd, a * b // gcd)
s835054357
p00005
u889593139
1512088645
Python
Python3
py
Runtime Error
0
0
298
def GCD(a, b): if a % b == 0: return b else: yeah = a % b return GCD(b, yeah) def LCM(a, b, a_b_GCD): return int((a * b) / a_b_GCD) while True: a, b = map(int, input().split(' ')) a, b = max(a, b), min(a, b) print(GCD(a, b), LCM(a, b, GCD(a, b)))
Traceback (most recent call last): File "/tmp/tmpy5520u_f/tmpshh91zx8.py", line 13, in <module> a, b = map(int, input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s178664324
p00005
u889593139
1512088666
Python
Python3
py
Runtime Error
0
0
298
def GCD(a, b): if a % b == 0: return b else: yeah = a % b return GCD(b, yeah) def LCM(a, b, a_b_GCD): return int((a * b) / a_b_GCD) while True: a, b = map(int, input().split(' ')) a, b = max(a, b), min(a, b) print(GCD(a, b), LCM(a, b, GCD(a, b)))
Traceback (most recent call last): File "/tmp/tmp73neswy1/tmpx_58ujea.py", line 13, in <module> a, b = map(int, input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s479337833
p00005
u889593139
1512101151
Python
Python3
py
Runtime Error
0
0
298
def GCD(a, b): if a % b == 0: return b else: yeah = a % b return GCD(b, yeah) def LCM(a, b, a_b_GCD): return int((a * b) / a_b_GCD) while True: a, b = map(int, input().split(' ')) a, b = max(a, b), min(a, b) print(GCD(a, b), LCM(a, b, GCD(a, b)))
Traceback (most recent call last): File "/tmp/tmpkz0f3u01/tmpf0_7tlc5.py", line 13, in <module> a, b = map(int, input().split(' ')) ^^^^^^^ EOFError: EOF when reading a line
s995099541
p00005
u471400255
1513698608
Python
Python3
py
Runtime Error
0
0
143
from math import gcd from sys import stdin for line in stdin: a,b = [int(i) for i in line.split()] g = gcd(a,b) print(g,int(a*b/g)
File "/tmp/tmp8yqedr_h/tmpqyashff8.py", line 7 print(g,int(a*b/g) ^ SyntaxError: '(' was never closed
s518542098
p00005
u298999032
1514244876
Python
Python3
py
Runtime Error
0
0
119
import fractions as f while 1: a,b=map(int,input().split()) print(str(f.gcd(a,b))+' '+str(a*b//f.gcd(a,b)))
Traceback (most recent call last): File "/tmp/tmp0m79wn9r/tmpbz86ufts.py", line 3, in <module> a,b=map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s849196096
p00005
u706217959
1515302052
Python
Python3
py
Runtime Error
0
0
843
class GCD(): def __init__(self,a,b): self.a = a self.b = b def swap(self): temp = self.a self.a = self.b self.b = temp def gcd(self): if self.b < self.a: self.swap() temp = self.b % self.a ans = self.b % temp return ans def lcm(self): gcd = self.gcd() temp = self.a * self.b ans = temp // gcd return gcd,ans def print(self): num = self.lcm() print("{0} {1}".format(num[0],num[1])) def main(): data = [] while 1: try: n = input().split() a = int(n[0]) b = int(n[1]) data.append(GCD(a, b)) except EOFError: break for array in data: array.print() if __name__ == "__main__": main()
s942146030
p00005
u706217959
1515302075
Python
Python3
py
Runtime Error
0
0
843
class GCD(): def __init__(self,a,b): self.a = a self.b = b def swap(self): temp = self.a self.a = self.b self.b = temp def gcd(self): if self.b < self.a: self.swap() temp = self.b % self.a ans = self.b % temp return ans def lcm(self): gcd = self.gcd() temp = self.a * self.b ans = temp // gcd return gcd,ans def print(self): num = self.lcm() print("{0} {1}".format(num[0],num[1])) def main(): data = [] while 1: try: n = input().split() a = int(n[0]) b = int(n[1]) data.append(GCD(a, b)) except EOFError: break for array in data: array.print() if __name__ == "__main__": main()
s884401410
p00005
u706217959
1515304214
Python
Python3
py
Runtime Error
0
0
915
class GCD(): def __init__(self,a,b): self.a = a self.b = b def swap(self): temp = self.a self.a = self.b self.b = temp def gcd(self): if self.b < self.a: self.swap() temp = self.b % self.a if temp == 0: ans = self.a return ans ans = self.b % temp return ans def lcm(self): gcd = self.gcd() temp = self.a * self.b ans = temp // gcd return gcd,ans def print(self): num = self.lcm() print("{0} {1}".format(num[0],num[1])) def main(): data = [] while 1: try: n = input().split() a = int(n[0]) b = int(n[1]) data.append(GCD(a, b)) except EOFError: break for array in data: array.print() if __name__ == "__main__": main()
s518473115
p00005
u706217959
1515304667
Python
Python3
py
Runtime Error
0
0
915
class GCD(): def __init__(self,a,b): self.a = a self.b = b def swap(self): temp = self.a self.a = self.b self.b = temp def gcd(self): if self.b < self.a: self.swap() temp = self.b % self.a if temp == 0: ans = self.a return ans ans = self.b % temp return ans def lcm(self): gcd = self.gcd() temp = self.a * self.b ans = temp // gcd return gcd,ans def print(self): num = self.lcm() print("{0} {1}".format(num[0],num[1])) def main(): data = [] while 1: try: n = input().split() a = int(n[0]) b = int(n[1]) data.append(GCD(a, b)) except EOFError: break for array in data: array.print() if __name__ == "__main__": main()
s269708142
p00005
u264972437
1516013434
Python
Python3
py
Runtime Error
0
0
681
def pd(n): i = 2 ans = [] while i ** 2 <= n: while n % i == 0: n /= i ans.append(i) i += 1 if n > 1: ans.append(n) return ans def gcd(a, b): gcd = 1 pd_a = pd(a) pd_b = pd(b) for i in pd_a: if i in pd_b: pd_b.remove(i) gcd *= i return int(gcd) def lcm(a, b): lcm = a pd_a = pd(a) pd_b = pd(b) for i in pd_a: if i in pd_b: pd_b.remove(i) for j in pd_b: lcm *= j return int(lcm) while True: s = input() if not s: break a,b = [int(i) for i in s.split(' ')] print(gcd(a, b), lcm(a, b))
Traceback (most recent call last): File "/tmp/tmpw82h186m/tmpir84qia2.py", line 35, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s859098662
p00005
u264972437
1516013466
Python
Python3
py
Runtime Error
0
0
681
def pd(n): i = 2 ans = [] while i ** 2 <= n: while n % i == 0: n /= i ans.append(i) i += 1 if n > 1: ans.append(n) return ans def gcd(a, b): gcd = 1 pd_a = pd(a) pd_b = pd(b) for i in pd_a: if i in pd_b: pd_b.remove(i) gcd *= i return int(gcd) def lcm(a, b): lcm = a pd_a = pd(a) pd_b = pd(b) for i in pd_a: if i in pd_b: pd_b.remove(i) for j in pd_b: lcm *= j return int(lcm) while True: s = input() if not s: break a,b = [int(i) for i in s.split(' ')] print(gcd(a, b), lcm(a, b))
Traceback (most recent call last): File "/tmp/tmplo9peryt/tmp_b0x5hn4.py", line 35, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s912344737
p00005
u845643816
1516636981
Python
Python3
py
Runtime Error
0
0
153
def gcd(a, b): while b: a, b = b, a%b return a while 1: a, b = map(int,input().split()) g = gcd(a, b) l = a / g * b print(g, l)
Traceback (most recent call last): File "/tmp/tmpmgqr9gr2/tmphgnvssa8.py", line 6, in <module> a, b = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s656043166
p00005
u845643816
1516637253
Python
Python3
py
Runtime Error
0
0
180
import sys def gcd(a, b): while b: a, b = b, a%b return a for line in sys.stdin: a, b = map(int,input().split()) g = gcd(a, b) l = a // g * b print(g, l)
s183662284
p00005
u845643816
1516637271
Python
Python3
py
Runtime Error
0
0
181
import sys; def gcd(a, b): while b: a, b = b, a%b return a for line in sys.stdin: a, b = map(int,input().split()) g = gcd(a, b) l = a // g * b print(g, l)
s377397326
p00005
u845643816
1516637319
Python
Python3
py
Runtime Error
0
0
181
import sys; def gcd(a, b): while b: a, b = b, a%b return a for line in sys.stdin: a, b = map(int,input().split()) g = gcd(a, b) l = a * b // g print(g, l)
s533550087
p00005
u845643816
1516637525
Python
Python3
py
Runtime Error
0
0
187
import sys; def gcd(a, b): while b: a, b = b, a%b return a for line in sys.stdin: a, b = list(map(int,input().split())) g = gcd(a, b) l = a * b // g print(g, l)
s212223812
p00005
u217408867
1526690147
Python
Python3
py
Runtime Error
0
0
557
import sys def get_divisor(num): divisor_list = [] for i in range(1, int(num/2)): divisor = num / i if divisor.is_integer(): divisor_list.append(i) divisor_list.append(int(divisor)) return list(set(divisor_list)) for line in sys.stdin.readlines(): ab = [int(str_) for str_ in line.split()] a_list = get_divisor(ab[0]) b_list = get_divisor(ab[1]) matched_list = [b for b in b_list if b in a_list] g = max(matched_list) l = int(ab[0]*ab[1] / g) print("{} {}".format(g, l))
s155281724
p00005
u217408867
1526690223
Python
Python3
py
Runtime Error
0
0
556
import sys def get_divisor(num): divisor_list = [] for i in range(1, int(num/2)): divisor = num / i if divisor.is_integer(): divisor_list.append(i) divisor_list.append(int(divisor)) return list(set(divisor_list)) for line in sys.stdin.readlines(): ab = [int(str_) for str_ in line.split()] a_list = get_divisor(ab[0]) b_list = get_divisor(ab[1]) matched_list = [b for b in b_list if b in a_list] g = max(matched_list) l = int(ab[0]*ab[1] / g) print("{} {}".format(g, l))
s503249206
p00005
u217408867
1526690288
Python
Python3
py
Runtime Error
0
0
544
import sys def get_divisor(num): divisor_list = [] for i in range(1, int(num/2)): divisor = num / i if divisor.is_integer(): divisor_list.append(i) divisor_list.append(int(divisor)) return list(set(divisor_list)) for line in sys.stdin: ab = [int(str_) for str_ in line.split()] a_list = get_divisor(ab[0]) b_list = get_divisor(ab[1]) matched_list = [b for b in b_list if b in a_list] g = max(matched_list) l = int(ab[0]*ab[1] / g) print("{} {}".format(g, l))
s348781204
p00005
u217408867
1526690507
Python
Python3
py
Runtime Error
0
0
525
def get_divisor(num): divisor_list = [] for i in range(1, int(num/2)): divisor = num / i if divisor.is_integer(): divisor_list.append(i) divisor_list.append(int(divisor)) return list(set(divisor_list)) while True: ab = [int(str_) for str_ in input().split()] a_list = get_divisor(ab[0]) b_list = get_divisor(ab[1]) matched_list = [b for b in b_list if b in a_list] g = max(matched_list) l = int(ab[0]*ab[1] / g) print("{} {}".format(g, l))
Traceback (most recent call last): File "/tmp/tmpwybh42wn/tmpi97b_42v.py", line 12, in <module> ab = [int(str_) for str_ in input().split()] ^^^^^^^ EOFError: EOF when reading a line
s209973685
p00005
u217408867
1526691741
Python
Python3
py
Runtime Error
0
0
558
import sys def get_divisor(num): divisor_list = [] for i in range(1, int(num/2)): divisor = num / i if divisor.is_integer(): divisor_list.append(i) divisor_list.append(int(divisor)) return list(set(divisor_list)) for line in sys.stdin.readlines(): ab = [int(str_) for str_ in line.split()] a_list = get_divisor(ab[0]) b_list = get_divisor(ab[1]) matched_list = [b for b in b_list if b in a_list] g = max(matched_list) l = int(ab[0]*ab[1] / g) print("{} {}".format(g, l))
s449772842
p00005
u136916346
1527349312
Python
Python3
py
Runtime Error
0
0
195
import sys def gcd(a,b): if a%b==0: return b return gcd(b,a%b) r=[map(int,line.split()) for line in sys.stdin] for i in r: o=gcd(i[0],i[i]) p=i[0]*i[1]/o print(o,p)
s760662313
p00005
u136916346
1527349475
Python
Python3
py
Runtime Error
0
0
201
import sys def gcd(a,b): if a%b==0: return b return gcd(b,a%b) r=[list(map(int,line.split())) for line in sys.stdin] for i in r: o=gcd(i[0],i[i]) p=i[0]*i[1]/o print(o,p)
s551794757
p00005
u986478725
1527570817
Python
Python3
py
Runtime Error
0
0
713
# Vol0005. def intinput(): a = input().split() for i in range(len(a)): a[i] = int(a[i]) return a def get_gcd(x, y): if x < y: return get_gcd(y, x) # x >= yのときはx % yを計算してyとx % yの話にする。 # ここでx % yのところが0ならばyが求める答えとなる。 if y == 0: return x return get_gcd(y, x % y) def main(): data = [] lines = sys.stdin.readlines() for line in lines: data.append(line.split()) N = len(data) for i in range(N): a = int(data[i][0]); b = int(data[i][1]) gcd = get_gcd(a, b) lcm = (a // gcd) * b print('%d %d' % (a, b)) if __name__ == "__main__": main()
Traceback (most recent call last): File "/tmp/tmp6hbh5_pi/tmpjpfqdzf6.py", line 31, in <module> main() File "/tmp/tmp6hbh5_pi/tmpjpfqdzf6.py", line 19, in main lines = sys.stdin.readlines() ^^^ NameError: name 'sys' is not defined
s601229196
p00005
u002010345
1527725656
Python
Python3
py
Runtime Error
0
0
202
def main(): while 1: a,b=(int(x) for x in input().split()) a1=a b1=b while b!=0: c=a%b a=b b=c print(a, a1*b1//a) main()
Traceback (most recent call last): File "/tmp/tmpiv8xmzts/tmpnr8tj7lp.py", line 12, in <module> main() File "/tmp/tmpiv8xmzts/tmpnr8tj7lp.py", line 3, in main a,b=(int(x) for x in input().split()) ^^^^^^^ EOFError: EOF when reading a line
s974630323
p00005
u328733599
1528389218
Python
Python3
py
Runtime Error
0
0
367
from sys import stdin from sys import math def GCD(a,b): if(a%b==0): return b else: c = a%b return GCD(b,c) def LCM(a,b): gcd = GCD(a,b) return a*b/gcd for line in stdin: a,b = line.split(" ") a = int(a) b = int(b) gcd = GCD(a,b) lcm = math.floor(LCM(a,b)) print(str(gcd)+" "+str(lcm)) print()
Traceback (most recent call last): File "/tmp/tmpw7beifwr/tmp49bfyfdi.py", line 2, in <module> from sys import math ImportError: cannot import name 'math' from 'sys' (unknown location)
s192935609
p00005
u563075864
1529162395
Python
Python3
py
Runtime Error
0
0
263
import sys def euc(n,m): if n == m: return m elif m == 1 | n == 1: return 1 else: return euc(min(n,m), max(n,m)-min(n,m)) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s368433436
p00005
u563075864
1529162445
Python
Python3
py
Runtime Error
0
0
263
import sys def euc(n,m): if n == m: return m elif m == 1 | n == 1: return 1 else: return euc(min(n,m), max(n,m)-min(n,m)) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s206248897
p00005
u563075864
1529162477
Python
Python3
py
Runtime Error
0
0
265
import sys def euc(n,m): if n == m: return m elif m == 1 | n == 1: return 1 else: return euc(min(n,m), max(n,m)-min(n,m)) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s886807849
p00005
u563075864
1529162592
Python
Python
py
Runtime Error
0
0
265
import sys def euc(n,m): if n == m: return m elif m == 1 | n == 1: return 1 else: return euc(min(n,m), max(n,m)-min(n,m)) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s556376627
p00005
u563075864
1529162671
Python
Python3
py
Runtime Error
0
0
266
import sys def euc(n,m): if n == m: return m elif m == 1 or n == 1: return 1 else: return euc(min(n,m), max(n,m)-min(n,m)) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s675823898
p00005
u563075864
1529162854
Python
Python3
py
Runtime Error
0
0
289
import sys def euc(n,m): if n == m: return m elif m == 1 or n == 1: return 1 else: return euc(min(n,m), max(n,m)-min(n,m)*int(max(n,m)/min(n,m))) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s735385868
p00005
u563075864
1529163392
Python
Python3
py
Runtime Error
0
0
224
import sys def euc(n,m): if n%m == 0: return m else: return euc(min(n,m), max(n,m)%min(n,m)) for line in sys.stdin: a,b = [int(i) for i in line.split()] print(euc(a,b),int(a*b/euc(a,b)))
s447602078
p00005
u108432367
1344692391
Python
Python
py
Runtime Error
0
1008
189
import sys;print"\n".join("%d %d"%(lambda l:(l[0],l[2]/l[0]*l[1]))(lambda f,l:(f(f,l),l[0],l[1]))(lambda f,l:l[1]==0 and l[0] or f(f,[l[1],l[0]%l[1]]),map(int,s.split()))for s in sys.stdin)
File "/tmp/tmpwv1x5xmb/tmpzbd890ss.py", line 1 import sys;print"\n".join("%d %d"%(lambda l:(l[0],l[2]/l[0]*l[1]))(lambda f,l:(f(f,l),l[0],l[1]))(lambda f,l:l[1]==0 and l[0] or f(f,[l[1],l[0]%l[1]]),map(int,s.split()))for s in sys.stdin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s239571748
p00005
u891318575
1346476387
Python
Python
py
Runtime Error
0
0
507
while True: try: list = [int(x) for x in raw_input().split(" ")] list.sort(lambda x, y: y - x) gcd = lcm = 0 m = list[0] n = list[1] while True: r = m%n if r == 0: gcd = n break m = n n = r lcm = list[0] * list[1] / gcd print(str(gcd) + " " + str(lcm)) except EOFError: break
File "/tmp/tmp77lb1cfu/tmpgzvv_9k0.py", line 1 while True: IndentationError: unexpected indent
s430606131
p00005
u282635979
1363410376
Python
Python
py
Runtime Error
0
0
223
while True: ints = raw_input() if ints != '': x = map(int,ints.split(' ')) x.sort() a = x[1] b = x[0] while True: m=a%b if m!=0: a=b b=m continue else: break n = x[1]*x[0]/b print b,n
File "/tmp/tmp6ygg_x5o/tmpq36vau67.py", line 17 print b,n ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s983178262
p00005
u282635979
1363410460
Python
Python
py
Runtime Error
0
0
250
while True: ints = raw_input() if ints != '': x = map(int,ints.split(' ')) x.sort() a = x[1] b = x[0] while True: m=a%b if m!=0: a=b b=m continue else: break n = x[1]*x[0]/b print b,n continue else: break
File "/tmp/tmpqrdbi4m0/tmpsa3vm7o6.py", line 17 print b,n ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s819617702
p00005
u585414111
1365344189
Python
Python
py
Runtime Error
0
0
265
import sys def euc(li): if (li[0] == 0 or li[1] == 0): return li[1]; return euc((li[0]-li[1],li[1]) if li[0]>li[1] else (li[1]-li[0],li[0])) for line in sys.stdin: [a,b] = [int(x) for x in line.split()] gcd = euc([a,b]) print gcd,a*b/gcd
File "/tmp/tmp187z2_8c/tmpg_bg_2ue.py", line 9 print gcd,a*b/gcd ^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s463981468
p00005
u585414111
1365344606
Python
Python
py
Runtime Error
0
0
264
import sys def euc(li): if (li[0] == 0 or li[1] == 0): return li[1] return euc((li[0]-li[1],li[1]) if li[0]>li[1] else (li[1]-li[0],li[0])) for line in sys.stdin: [a,b] = [int(x) for x in line.split()] gcd = euc([a,b]) print gcd,a*b/gcd
File "/tmp/tmpej73qhdd/tmpv9l81que.py", line 9 print gcd,a*b/gcd ^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s144869435
p00005
u547057305
1381686538
Python
Python
py
Runtime Error
0
0
172
A , B = map(int,input().split()) a , b = A , B while a != b: if a < b: b = b-a elif b < a: a = a-b b = int(A*B/a) print(a,b)
Traceback (most recent call last): File "/tmp/tmpmep1mvxj/tmpqqfyicbw.py", line 1, in <module> A , B = map(int,input().split()) ^^^^^^^ EOFError: EOF when reading a line
s849812989
p00005
u511257811
1381941477
Python
Python
py
Runtime Error
0
0
349
import sys for line in sys.stdin: a, b = sorted(map(int, line.split(' '))) gcd = 1 div = 2 while a >= div: amod, bmod = a % div, b % div if amod == 0 and bmod == 0; gcd *= div a, b = a/div, b/div continue else: div += 2 lcm = gcd * a * b print gcd, lcm
File "/tmp/tmp1moh6hd6/tmph4y1tnii.py", line 9 if amod == 0 and bmod == 0; ^ SyntaxError: invalid syntax
s376316170
p00005
u511257811
1381941679
Python
Python
py
Runtime Error
0
0
369
import sys for line in sys.stdin: a, b = sorted(map(int, line.split(' '))) gcd = 1 div = 2 while a >= div: amod, bmod = a % div, b % div if amod == 0 and bmod == 0; gcd *= div a, b = a/div, b/div div = 2 continue else: div += 1 lcm = gcd * a * b print gcd, lcm
File "/tmp/tmpz89dwswn/tmpxkhv3wbu.py", line 9 if amod == 0 and bmod == 0; ^ SyntaxError: invalid syntax
s240093787
p00005
u511257811
1381941847
Python
Python
py
Runtime Error
0
0
351
import sys for line in sys.stdin: a, b = sorted(map(int, line.split(' '))) gcd = 1 d = 2 while a >= d: amod, bmod = a % d, b % d if amod == 0 and bmod == 0; gcd *= d a, b = a/d, b/d d = 2 continue else: d += 1 lcm = gcd * a * b print gcd, lcm
File "/tmp/tmpknmtfod5/tmpoht1ob5t.py", line 9 if amod == 0 and bmod == 0; ^ SyntaxError: invalid syntax
s670602009
p00005
u093607836
1384846789
Python
Python
py
Runtime Error
0
0
190
import sys def gcd(a,b): if b == 0: return a else: return gcd(b,a%b) def lcm(a,b): return a*b/gcd(a,b) for s in sys.stdin: i = map(int,raw_input().split()) print gcd(*i), lcm(*i)
File "/tmp/tmpbhy5q2fg/tmp28h3wlqx.py", line 14 print gcd(*i), lcm(*i) ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s069641348
p00005
u912237403
1388821674
Python
Python
py
Runtime Error
0
0
203
import sys def gcm(a, b): if a<b: a,b=b,a if (a%b==0): return b else: return gcm(b,a%b) for s in stdin: a,b=map(int,s.split()) c=gcm(a,b) print "%d %d" %(c,a/c*b)
File "/tmp/tmp1ntnu4pp/tmpm7l5cbov.py", line 12 print "%d %d" %(c,a/c*b) ^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s914090179
p00005
u230836528
1392096350
Python
Python
py
Runtime Error
0
0
509
# -*- coding: utf-8 -*- import sys outList = [] for line in sys.stdin.readlines(): List = map(int, line.strip().split()) [a, b] = List # LCM LCM = 1 for i in xrange(2, max(a, b)): if isprime(a) or isprime(b): break while(a % i == 0 and b % i == 0): LCM *= i a /= i b /= i # GCD GCD = List[0] * b print LCM, GCD def isprime(n): for i in xrange(2, int(n ** 0.5) ): if n % i == 0: return False return True
File "/tmp/tmp3w6_pb23/tmp_p03lf3w.py", line 23 print LCM, GCD ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s183051102
p00005
u230836528
1392096399
Python
Python
py
Runtime Error
0
0
543
# -*- coding: utf-8 -*- import sys outList = [] for line in sys.stdin.readlines(): List = map(int, line.strip().split()) [a, b] = List # LCM LCM = 1 for i in xrange(2, max(a, b)): if isprime(i): continue if isprime(a) or isprime(b): break while(a % i == 0 and b % i == 0): LCM *= i a /= i b /= i # GCD GCD = List[0] * b print LCM, GCD def isprime(n): for i in xrange(2, int(n ** 0.5)+1 ): if n % i == 0: return False return True
File "/tmp/tmpuk99wx1d/tmpk3y4aco_.py", line 24 print LCM, GCD ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s722308880
p00005
u633068244
1393350930
Python
Python
py
Runtime Error
0
0
195
while True: a, b = map(int, raw_input().split()) def gcd(a, b): if b == 0: return a else: return gcd(b, a%b) g = gcd(a,b) l = a * b/gcd(a,b) print g, l
File "/tmp/tmpu5riqzof/tmpbp7vt0bo.py", line 4 if b == 0: ^ IndentationError: expected an indented block after function definition on line 3
s161179891
p00005
u633068244
1393350976
Python
Python
py
Runtime Error
0
0
238
while True: try: a, b = map(int, raw_input().split()) def gcd(a, b): if b == 0: return a else: return gcd(b, a%b) g = gcd(a,b) l = a*b/gcd(a,b) print g, l
File "/tmp/tmp_9q14uu3/tmp94pzruq4.py", line 5 if b == 0: ^ IndentationError: expected an indented block after function definition on line 4
s289683351
p00005
u633068244
1393351001
Python
Python
py
Runtime Error
0
0
264
while True: try: a, b = map(int, raw_input().split()) def gcd(a, b): if b == 0: return a else: return gcd(b, a%b) g = gcd(a,b) l = a*b/gcd(a,b) print g, l except: break
File "/tmp/tmp9xzxc9f2/tmpb9c_zjbk.py", line 5 if b == 0: ^ IndentationError: expected an indented block after function definition on line 4
s084431631
p00005
u633068244
1393351021
Python
Python
py
Runtime Error
0
0
257
while True: try: a, b = map(int, raw_input().split()) def gcd(a, b): if b == 0: return a else: return gcd(b, a%b) g = gcd(a,b) l = a*b/g print g, l except: break
File "/tmp/tmpusxwkj57/tmp1itkqtey.py", line 5 if b == 0: ^ IndentationError: expected an indented block after function definition on line 4
s629557030
p00005
u193025715
1394960302
Python
Python
py
Runtime Error
0
0
337
while True: a,b = map(int, raw_input().split()) GCD = a if a > b else b LCM = a * b tmp = GCD #GCD 最大公約数 #LCM 最小公倍数 for i in range(tmp, 0, -1): if a % i == 0 and b % i == 0: GCD = i tmp = LCM for i in range(tmp, 0, -1): if i % a == 0 and i % i == 0: LCM = i print str(GCD) + " " + str(LCM)
File "/tmp/tmptlurg9oi/tmpu1h97kmi.py", line 13 print str(GCD) + " " + str(LCM) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s119062712
p00005
u193025715
1394960370
Python
Python
py
Runtime Error
0
0
291
while True: a,b = map(int, raw_input().split()) GCD = a if a > b else b LCM = a * b tmp = GCD for i in range(tmp, 0, -1): if a % i == 0 and b % i == 0: GCD = i tmp = LCM for i in range(tmp, 0, -1): if i % a == 0 and i % i == 0: LCM = i print str(GCD) + " " + str(LCM)
File "/tmp/tmpy60778o3/tmpt7og91jb.py", line 11 print str(GCD) + " " + str(LCM) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s071281512
p00005
u193025715
1394960414
Python
Python
py
Runtime Error
0
0
347
while True: try: a,b = map(int, raw_input().split()) GCD = a if a > b else b LCM = a * b tmp = GCD for i in range(tmp, 0, -1): if a % i == 0 and b % i == 0: GCD = i tmp = LCM for i in range(tmp, 0, -1): if i % a == 0 and i % i == 0: LCM = i print str(GCD) + " " + str(LCM) except EOFError: break
File "/tmp/tmp3i_a00fl/tmpug0m6u85.py", line 12 print str(GCD) + " " + str(LCM) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s054910425
p00005
u193025715
1394960492
Python
Python
py
Runtime Error
0
0
347
while True: try: a,b = map(int, raw_input().split()) GCD = a if a > b else b LCM = a * b tmp = GCD for i in range(tmp, 0, -1): if a % i == 0 and b % i == 0: GCD = i tmp = LCM for i in range(tmp, 0, -1): if i % a == 0 and i % i == 0: LCM = i print str(GCD) + " " + str(LCM) except EOFError: break
File "/tmp/tmp025whmwz/tmpbxaab3gk.py", line 12 print str(GCD) + " " + str(LCM) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s024702816
p00005
u140201022
1395851916
Python
Python
py
Runtime Error
0
0
170
def gcd(a,b): while a%b: a,b=b,a%b return b def lcm(a,b): return a*b/gcd(a,b) while 1: a,b=map(int, raw_input().split()) print gcd(a,b),lcm(a,b)
File "/tmp/tmp8xorxn_2/tmpykn6p8qv.py", line 11 print gcd(a,b),lcm(a,b) ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s004179199
p00005
u140201022
1395852013
Python
Python
py
Runtime Error
0
0
201
def gcd(a,b): while a%b: a,b=b,a%b return b def lcm(a,b): return a*b/gcd(a,b) while 1: a,b=map(int, raw_input().split()) a,b=max(a,b),min(a,b) print gcd(a,b),lcm(a,b)
File "/tmp/tmp0a9eqyle/tmpfcw9ozd9.py", line 13 print gcd(a,b),lcm(a,b) ^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s824300814
p00005
u557208833
1402199897
Python
Python
py
Runtime Error
0
0
276
def readint(): for line in sys.stdin: yield map(int,line.split()) def gcd(x,y): [x,y] = [max(x,y),min(x,y)] z = x % y while z > 0: [x,y,z] = [y,z,x % y] return y for [x,y] in readint(): GCD = gcd(x,y) mx = x/GCD print GCD,mx*y
File "/tmp/tmpps_5rj_k/tmpavoa3fu3.py", line 15 print GCD,mx*y ^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s536072190
p00005
u525640557
1402405479
Python
Python
py
Runtime Error
0
0
232
i=a j=a while i>0: if b%i==0 and a%i==0: print i break else: i=i-1 while j>0:   if j%b==0 and j%a==0: print j break else: j=j+1
File "/tmp/tmpuz2mprrl/tmpks6spu_f.py", line 5 print i ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s745753189
p00006
u114860785
1559541709
Python
Python3
py
Runtime Error
0
0
21
print(imput()[::-1])
Traceback (most recent call last): File "/tmp/tmp6boj9gh4/tmpomey80bl.py", line 1, in <module> print(imput()[::-1]) ^^^^^ NameError: name 'imput' is not defined. Did you mean: 'input'?
s481929814
p00006
u607831289
1416063913
Python
Python
py
Runtime Error
0
0
61
line = raw_input() print ''.join(reversed(list(raw_input())))
File "/tmp/tmpddg_mvl9/tmp1w4ph5vv.py", line 2 print ''.join(reversed(list(raw_input()))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s798049875
p00006
u772921135
1416636339
Python
Python3
py
Runtime Error
0
0
120
import sys line = sys.stdin.readlines(); ret = ""; for i in range(1,len(line)): ret += line[len(line)-1-i]; print ret
File "/tmp/tmpmvepbzll/tmp4wjg_s_d.py", line 8 print ret ^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s603352070
p00006
u772921135
1416636643
Python
Python
py
Runtime Error
0
0
95
line = input() ret = ""; for i in range(1,len(line)): ret += line[len(line)-1-i]; print(ret)
Traceback (most recent call last): File "/tmp/tmpcui8q8fb/tmp5t3qh67d.py", line 1, in <module> line = input() ^^^^^^^ EOFError: EOF when reading a line
s318034362
p00006
u540744789
1425629054
Python
Python
py
Runtime Error
0
0
122
import sys for str in sys.stdin: rev = "" for x in range(len(str),0,-1): rev=rev+str[x-1]   print rev
File "/tmp/tmpwysawgva/tmpqa8_4qua.py", line 7   print rev ^ SyntaxError: invalid non-printable character U+3000