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
s118980036
p02255
u022407960
1477842668
Python
Python
py
Runtime Error
0
0
227
n = int(input()) a = list(map(int, raw_input().split())) for i in range(n): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j+1] = a[j] j -= 1 a[j+1] = v print(" ".join(str(s) for s in a)
File "/tmp/tmp1zlsxgx9/tmp0mwpaadh.py", line 10 print(" ".join(str(s) for s in a) ^ SyntaxError: '(' was never closed
s697761117
p02255
u022407960
1477842820
Python
Python
py
Runtime Error
0
0
227
n = int(input()) a = list(map(int, raw_input().split())) for i in range(n): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j+1] = a[j] j -= 1 a[j+1] = v print(" ".join(str(s) for s in a)
File "/tmp/tmpp0ccc0w3/tmp63mptml8.py", line 10 print(" ".join(str(s) for s in a) ^ SyntaxError: '(' was never closed
s036997999
p02255
u022407960
1477842866
Python
Python
py
Runtime Error
0
0
227
n = int(input()) a = list(map(int, raw_input().split())) for i in range(n): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j+1] = a[j] j -= 1 a[j+1] = v print(" ".join(str(s) for s in a)
File "/tmp/tmprd9h54o5/tmpeg3jgco5.py", line 10 print(" ".join(str(s) for s in a) ^ SyntaxError: '(' was never closed
s385477981
p02255
u022407960
1477842938
Python
Python3
py
Runtime Error
0
0
728
from __future__ import print_function class Solution: """ @param prices: Given an integer array @return: Maximum profit """ @staticmethod def insertion_sort(): # write your code here array_length = raw_input() unsorted_array = list(map(int, raw_input().split())) for i in range(1, array_length): v = unsorted_array[i] j = i - 1 while j >= 0 and unsorted_array[j] > v: unsorted_array[j + 1] = unsorted_array[j] j -= 1 unsorted_array[j + 1] = v print(" ".join(str(i) for i in unsorted_array)) if __name__ == '__main__': solution = Solution() solution.insertion_sort()
Traceback (most recent call last): File "/tmp/tmpkphd8jsv/tmp0tu8hu3a.py", line 29, in <module> solution.insertion_sort() File "/tmp/tmpkphd8jsv/tmp0tu8hu3a.py", line 14, in insertion_sort array_length = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s522038984
p02255
u022407960
1477843727
Python
Python
py
Runtime Error
0
0
743
from __future__ import print_function class Solution: """ @param prices: Given an integer array @return: Maximum profit """ @staticmethod def insertion_sort(): # write your code here array_length = int(raw_input()) unsorted_array = map(int, raw_input().line.strip().split(" ")) for i in range(1, array_length): v = unsorted_array[i] j = i - 1 while j >= 0 and unsorted_array[j] > v: unsorted_array[j + 1] = unsorted_array[j] j -= 1 unsorted_array[j + 1] = v print(" ".join(str(i) for i in unsorted_array)) if __name__ == '__main__': solution = Solution() solution.insertion_sort()
Traceback (most recent call last): File "/tmp/tmp3a5_u4s3/tmpu4647px_.py", line 29, in <module> solution.insertion_sort() File "/tmp/tmp3a5_u4s3/tmpu4647px_.py", line 14, in insertion_sort array_length = int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s517773632
p02255
u022407960
1477844607
Python
Python
py
Runtime Error
0
0
758
#!/usr/bin/env python # encoding: utf-8 from __future__ import print_function class Solution: """ @param prices: Given an integer array @return: Maximum profit """ @staticmethod def insertion_sort(): # write your code here array_length = int(input()) unsorted_array = [int(x) for x in input().split()] for i in range(array_length): v = unsorted_array[i] j = i - 1 while j >= 0 and unsorted_array[j] > v: unsorted_array[j + 1] = unsorted_array[j] j -= 1 unsorted_array[j + 1] = v print(" ".join(map(str, unsorted_array))) if __name__ == '__main__': solution = Solution() solution.insertion_sort()
Traceback (most recent call last): File "/tmp/tmp7oeompwu/tmpxrmxl0rm.py", line 31, in <module> solution.insertion_sort() File "/tmp/tmp7oeompwu/tmpxrmxl0rm.py", line 16, in insertion_sort array_length = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s823613085
p02255
u534156032
1478581254
Python
Python3
py
Runtime Error
0
0
214
n = int(input()) a = [int(i) for i input().split()] for i in range(n): v = a[i] j = i - 1 while j >= 0 and a[j] > v: a[j+1] = a[j] j -= 1 a[j+1] = v print(" ".join(map(int, a)))
File "/tmp/tmpbcjcw0tl/tmpde53egbq.py", line 2 a = [int(i) for i input().split()] ^^^^^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?
s660691204
p02255
u209358977
1480951931
Python
Python3
py
Runtime Error
0
0
272
def insertion_sort(A, N): for i in range(len(N): v = A[i] j = i - 1 while j >= 0 and a[j] > v: A[j + 1] = A[j] j-- A[j + 1] = v if __name__=='__main__': n=int(input()) A=list(map(int,input().split())) insertion_sort(A) print(*A)
File "/tmp/tmpabjwrj1g/tmpnl9vzgf2.py", line 2 for i in range(len(N): ^ SyntaxError: invalid syntax
s597649917
p02255
u929986002
1482078829
Python
Python3
py
Runtime Error
20
7616
398
N = int(input()) #print(N) card = list(map(int, input().split())) #print(card) for i in range(N): v = card[i] j = i - 1 while j >= 0 and card[j] > v: card[j+1] = card[j] j = j -1 card[j+1] = v #print(card) card_str = "" for k in range(N-1): card_str += str(card[k]) card_str += " " card_str += str(card[k+1]) print(card_str)
Traceback (most recent call last): File "/tmp/tmpj0k0d_y8/tmp8iaowodh.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s695273732
p02255
u475480520
1483534264
Python
Python
py
Runtime Error
0
0
389
#input number n = raw_input() if n < 1 and n > 100: exit() # input elements l = raw_input() elements = l.split() for e in elements: o += str(e) + ' ' print o for i in range(1, int(n)): key = elements[i] j = i - 1 while j >= 0 and elements[j] > key: elements[j + 1] = elements[j] j -= 1 elements[j + 1] = key # output o = '' for e in elements: o += str(e) + ' ' print o
File "/tmp/tmpde9vuv_l/tmpu2nx6yin.py", line 14 print o ^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s577818310
p02255
u852745524
1483807897
Python
Python3
py
Runtime Error
0
0
341
# coding:utf-8 def insert_sort(list): for i in range(1, n): temp = list[i] # ?§??????????????´? while i>=1 and temp<list[i-1]: list[i]=list[i-1] ; i-=1 list[i] = temp s = " ".join(list) ; print(s) s = " ".join(list) ; print(s) n=int(input()) buff = list(map(int,input().split())) insert_sort(buff)
Traceback (most recent call last): File "/tmp/tmpy4qjp6wg/tmp4spav_e8.py", line 11, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s224622646
p02255
u867503285
1484317563
Python
Python3
py
Runtime Error
0
0
755
def insertion_sort(target_list, leng): '????????????????????????????????\???????????§??????????????????????????¨?????????' sorted_list = [target_list.pop(0)] for target in target_list[:]: print(('{} ' * (leng - 1)).format(*sorted_list, *target_list[0:-1]), end='') print(target_list[-1]) for i, num in enumerate(sorted_list): if num > target: sorted_list[i:i] = [target] break else: sorted_list.append(target) target_list.pop(0) print(('{} ' * (N - 1)).format(*sorted_list[0:-1]), end='') print(sorted_list[-1], end='') N = int(input()) A = [int(s) for s in input().split()] insertion_sort(A, N)
Traceback (most recent call last): File "/tmp/tmp2dx2qjl_/tmp7505ps4s.py", line 17, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s906592808
p02255
u867503285
1484317821
Python
Python3
py
Runtime Error
0
0
666
def insertion_sort(target_list, leng): sorted_list = [target_list.pop(0)] for target in target_list[:]: print(('{} ' * (leng - 1)).format(*sorted_list, *target_list[0:-1]), end='') print(target_list[-1]) for i, num in enumerate(sorted_list): if num > target: sorted_list[i:i] = [target] break else: sorted_list.append(target) target_list.pop(0) print(('{} ' * (N - 1)).format(*sorted_list[0:-1]), end='') print(sorted_list[-1], end='') N = int(input()) A = [int(s) for s in input().split()] insertion_sort(A, N)
Traceback (most recent call last): File "/tmp/tmpwdwe_3sj/tmp4kp859_g.py", line 17, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s044624504
p02255
u867503285
1484318726
Python
Python3
py
Runtime Error
0
0
714
def insertion_sort(target_list, leng): '????????????????????????????????\???????????§??????????????????????????¨?????????' sorted_list = [target_list.pop(0)] for target in target_list[:]: print(('{} ' * (leng - 1)).format(*sorted_list, *target_list[0:-1]), end='') print(target_list[-1]) for i, num in enumerate(sorted_list): if num > target: sorted_list[i:i] = [target] break else: sorted_list.append(target) target_list.pop(0) print(('{} ' * (N - 1)).format(*sorted_list[0:-1]), end='') print(sorted_list[-1], end='') N = int(input()) A = [int(s) for s in input().split()] insertion_sort(A, N)
Traceback (most recent call last): File "/tmp/tmp0252k3sr/tmp9hyn_bhv.py", line 17, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s407086429
p02255
u918276501
1484592833
Python
Python3
py
Runtime Error
0
0
372
class sort: def __init__(self, num): self.num = num def insert(self, lst): print(*lst) for i in range(1,self.num): j = i - 1 while (j >= 0) * (lst[j] > lst[i]): j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst) sort(int(input())).insert(list(map(int,input().split())))
Traceback (most recent call last): File "/tmp/tmpayyn8mr0/tmpcb8kem2r.py", line 14, in <module> sort(int(input())).insert(list(map(int,input().split()))) ^^^^^^^ EOFError: EOF when reading a line
s009318440
p02255
u918276501
1484592916
Python
Python3
py
Runtime Error
0
0
391
class sort: def __init__(self, num): self.num = num def insert(self, lst): print(*lst) for i in range(1,self.num): j = i - 1 while (j >= 0) * (lst[j] > lst[i]): j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst) n = int(input()) l = list(map(int,input().split())) s = sort(n) s.insert(l)
Traceback (most recent call last): File "/tmp/tmp4ns05qyu/tmpcqv8_5vl.py", line 14, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s388066642
p02255
u918276501
1484593098
Python
Python3
py
Runtime Error
0
0
397
class sort1: def __init__(self, num): self.num = num def p_insert(self, lst): print(*lst) for i in range(1,self.num): j = i - 1 while (j >= 0) * (lst[j] > lst[i]): j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst) n = int(input()) l = list(map(int,input().split())) s = sort1(n) s.p_insert(l)
Traceback (most recent call last): File "/tmp/tmps0dokxwa/tmpka6gv7w0.py", line 14, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s775306741
p02255
u918276501
1484593360
Python
Python3
py
Runtime Error
0
0
180
input() lst = input().split() for i in range(len(lst)): j = i - 1 while (j >= 0) * (lst[j] > lst[i]): j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst)
Traceback (most recent call last): File "/tmp/tmp9seotwp3/tmpwcic_lj6.py", line 1, in <module> input() EOFError: EOF when reading a line
s702368443
p02255
u918276501
1484593390
Python
Python3
py
Runtime Error
0
0
195
input() lst = list(map(int,input().split())) for i in range(len(lst)): j = i - 1 while (j >= 0) * (lst[j] > lst[i]): j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst)
Traceback (most recent call last): File "/tmp/tmpyd85i5f1/tmpehpkch_2.py", line 1, in <module> input() EOFError: EOF when reading a line
s649925264
p02255
u918276501
1484593693
Python
Python3
py
Runtime Error
0
0
201
input() lst = list(map(int,input().split())) for i in range(len(lst)): j = min(0, i-1) while (j >= 0) * (lst[j] > lst[i]): j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst)
Traceback (most recent call last): File "/tmp/tmpm8hb_1nc/tmp158w90jd.py", line 1, in <module> input() EOFError: EOF when reading a line
s598464613
p02255
u918276501
1484594082
Python
Python3
py
Runtime Error
0
0
208
n = int(input()) lst = list(map(int, input().split())) print(*lst) for i in range(1,n): j = i-1 while j >= 0 and lst[j] > lst[i]: j -= 1 lst[j+1:i+1] = lst[i] , *lst[j+1:i] print(*lst)
Traceback (most recent call last): File "/tmp/tmp3r0a2x8z/tmp6e_w_h1v.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s753138896
p02255
u162598098
1485093432
Python
Python3
py
Runtime Error
0
0
345
def insertionSort(lis,leng): for i in range(leng): v = lis[i] j = i - 1 while j >= 0 and lis[j] > v: lis[j+1] = lis[j] j = j-1 lis[j+1]=v print("".join(lis)) if __name__ == "__main__": leng=int(input()) lis=map(int,input().split()) insertionSort(lis,leng)
Traceback (most recent call last): File "/tmp/tmp1fu6fw6x/tmplflybll_.py", line 13, in <module> leng=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s768578811
p02255
u162598098
1485093456
Python
Python3
py
Runtime Error
0
0
345
def insertionSort(lis,leng): for i in range(leng): v = lis[i] j = i - 1 while j >= 0 and lis[j] > v: lis[j+1] = lis[j] j = j-1 lis[j+1]=v print("".join(lis)) if __name__ == "__main__": leng=int(input()) lis=map(int,input().split()) insertionSort(lis,leng)
Traceback (most recent call last): File "/tmp/tmpsewtq4rm/tmp_j0n6g6j.py", line 13, in <module> leng=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s668399408
p02255
u162598098
1485093506
Python
Python3
py
Runtime Error
0
0
349
def insertionSort(lis,leng): for i in range(leng): v = lis[i] j = i - 1 while j >= 0 and lis[j] > v: lis[j+1] = lis[j] j = j-1 lis[j+1]=v print("".join(lis)) if __name__ == "__main__": lengg=int(input()) liss=map(int,input().split()) insertionSort(liss,lengg)
Traceback (most recent call last): File "/tmp/tmpz_41crjj/tmpyxq57ete.py", line 13, in <module> lengg=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s000868113
p02255
u162598098
1485093527
Python
Python3
py
Runtime Error
0
0
355
def insertionSort(lis,leng): for i in range(leng): v = lis[i] j = i - 1 while j >= 0 and lis[j] > v: lis[j+1] = lis[j] j = j-1 lis[j+1]=v print("".join(lis)) if __name__ == "__main__": lengg=int(input()) liss=list(map(int,input().split())) insertionSort(liss,lengg)
Traceback (most recent call last): File "/tmp/tmpn7zz5yu1/tmpp8us98qm.py", line 13, in <module> lengg=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s736448918
p02255
u548155360
1487383330
Python
Python3
py
Runtime Error
0
0
208
N = int(input()) A = list(map(int, input().split())) for i in range(1,N): v = A[i] j = i-1 while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v B = [print(" ".join({A[k]})) for k in range(N)]
Traceback (most recent call last): File "/tmp/tmpsjvxc9h2/tmpnn442s9g.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s146425362
p02255
u548155360
1487383366
Python
Python3
py
Runtime Error
0
0
206
N = int(input()) A = list(map(int, input().split())) for i in range(1,N): v = A[i] j = i-1 while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v B = [print(" ".join(A[k])) for k in range(N)]
Traceback (most recent call last): File "/tmp/tmpj9d14bd6/tmp1g2jtf7l.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s193901994
p02255
u395334793
1491823796
Python
Python3
py
Runtime Error
0
0
210
n = int(input()) A = list(map(int,input().split())) for i in range(1,len(A)+1): print(*A) key = A[i] j = i - 1 while j >= 0 and A[j] > key : A[j+1] = A[j] j -= 1 A[j+1] = key
Traceback (most recent call last): File "/tmp/tmptx6vbhbj/tmp2zv9lof7.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s948724850
p02255
u796784914
1492842907
Python
Python
py
Runtime Error
0
0
295
N = input() A = map(int,raw_input().split()) for i in range(N-1): print A[i], print A[-1] for i in range(1,N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v for i in range(N-1): print A[i], print A[-1]
File "/tmp/tmp6hdutw3e/tmptg_zz1c6.py", line 5 print A[i], ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s448837450
p02255
u905808447
1495547964
Python
Python
py
Runtime Error
0
0
474
import sys def echo(A): for i, a in enumerate(A): if i < len(A) - 1: sys.stdout('%d ' % a) else: sys.stdout('%d\n' % a) def insertionSort(A, N): echo(A) for i in range(1, N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j + 1] = A[j] j -= 1 A[j + 1] = v echo(A) if __name__ == '__main__': n = raw_input() a = raw_input() insertionSort(a, n)
Traceback (most recent call last): File "/tmp/tmpl1c4wqi4/tmpq8824a_l.py", line 22, in <module> n = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s046599760
p02255
u905808447
1495548006
Python
Python
py
Runtime Error
0
0
436
import sys def echo(A): for i, a in enumerate(A): if i < len(A) - 1: sys.stdout('%d ' % a) else: sys.stdout('%d\n' % a) def insertionSort(A, N): echo(A) for i in range(1, N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j + 1] = A[j] j -= 1 A[j + 1] = v echo(A) n = raw_input() a = raw_input() insertionSort(a, n)
Traceback (most recent call last): File "/tmp/tmpyfcm5tzl/tmpiypo01c2.py", line 22, in <module> n = raw_input() ^^^^^^^^^ NameError: name 'raw_input' is not defined
s510265433
p02255
u905808447
1495548254
Python
Python
py
Runtime Error
0
0
551
import sys, re def echo(A): for i, a in enumerate(A): if i < len(A) - 1: sys.stdout('%d ' % a) else: sys.stdout('%d\n' % a) def insertionSort(A, N): echo(A) for i in range(1, N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j + 1] = A[j] j -= 1 A[j + 1] = v echo(A) n = int(raw_input()) a_text = raw_input() splits = re.split(a_text) a = [] for i, s in enumerate(splits): if s: a.append(int(s)) insertionSort(a, n)
Traceback (most recent call last): File "/tmp/tmpk9zfppgu/tmpccjpvi5p.py", line 22, in <module> n = int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s182421372
p02255
u905808447
1495548332
Python
Python
py
Runtime Error
0
0
556
import sys, re def echo(A): for i, a in enumerate(A): if i < len(A) - 1: sys.stdout('%d ' % a) else: sys.stdout('%d\n' % a) def insertionSort(A, N): echo(A) for i in range(1, N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j + 1] = A[j] j -= 1 A[j + 1] = v echo(A) n = int(raw_input()) a_text = raw_input() splits = re.split(' ', a_text) a = [] for i, s in enumerate(splits): if s: a.append(int(s)) insertionSort(a, n)
Traceback (most recent call last): File "/tmp/tmpfr_jltqs/tmpwazc99wz.py", line 22, in <module> n = int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s183236812
p02255
u650790815
1495689687
Python
Python3
py
Runtime Error
0
0
224
n = input() lst = list(map(int,input().split()) for i in range(n): key = lst[i] j = i-1 while j >= 0 and lst[j] > key: lst[j+1] = lst[j] j -= 1 lst[j+1] = key print(' '.join(map(str,lst)))
File "/tmp/tmpsuev4dur/tmp8_81jh7b.py", line 2 lst = list(map(int,input().split()) ^ SyntaxError: '(' was never closed
s126378891
p02255
u650790815
1496026497
Python
Python3
py
Runtime Error
0
0
211
n = int(input()) a = map(int,input().split()) for i in range(1,n): key = a[i] j = i-1 while j >=0 and a[j] > key: a[j+1] = a[j] j -= 1 a[j+1] = key print(' '.join(map(str,a)))
Traceback (most recent call last): File "/tmp/tmpg68yfut2/tmpnd8v6rgm.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s632015083
p02255
u650790815
1496026717
Python
Python3
py
Runtime Error
0
0
225
n = int(input()) a = list(map(int,input().split().strip()) for i in range(n): key = a[i] j = i - 1 while j >= 0 and a[j] > key: a[j+1] = a[j] j -= 1 a[j+1] = key print(' '.join(map(str,a)))
File "/tmp/tmpka6o0eq4/tmpfvz343b8.py", line 2 a = list(map(int,input().split().strip()) ^ SyntaxError: '(' was never closed
s662326363
p02255
u650790815
1496026927
Python
Python3
py
Runtime Error
0
0
223
n = int(input()) a = list(map(int,input().strip().split()) for i in range(n): key = a[i] j = i -1 while j > 0 and a[j] > key: a[j+1] = a[j] j -= 1 a[j+1] = key print(' '.join(map(str,a)))
File "/tmp/tmpf_vcrdd5/tmphqnl6gnh.py", line 2 a = list(map(int,input().strip().split()) ^ SyntaxError: '(' was never closed
s251026644
p02255
u591467586
1498035003
Python
Python3
py
Runtime Error
0
0
341
def insertionSort(N,A): for i in range(0,N): innum = A[i] j = j -1 while j>0 and A[i] > innum: A[j+1] = A[j] j = j -1 A[j+1] = innum B[k] = A return B if __name__ == "__main__": N = input() A = input() for i in range(0,B.length()): print(B[i])
Traceback (most recent call last): File "/tmp/tmpzidffsdw/tmphzdrtpql.py", line 13, in <module> N = input() ^^^^^^^ EOFError: EOF when reading a line
s383108543
p02255
u293826729
1498124920
Python
Python3
py
Runtime Error
0
0
249
l = input A = input().strip() for i in range(1,l): j = i-1 v = A[i] while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v s = [str(a) for a in A] print(' '.join(s))
Traceback (most recent call last): File "/tmp/tmp6mvwaebg/tmpahwe36lz.py", line 3, in <module> A = input().strip() ^^^^^^^ EOFError: EOF when reading a line
s062323332
p02255
u293826729
1498124931
Python
Python3
py
Runtime Error
0
0
249
l = input A = input().strip() for i in range(1,l): j = i-1 v = A[i] while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v s = [str(a) for a in A] print(' '.join(s))
Traceback (most recent call last): File "/tmp/tmpstlpvjb4/tmpvol4x15q.py", line 3, in <module> A = input().strip() ^^^^^^^ EOFError: EOF when reading a line
s159468557
p02255
u293826729
1498124983
Python
Python3
py
Runtime Error
0
0
250
l = input A = input().strip() for i in xrange(1,l): j = i-1 v = A[i] while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v s = [str(a) for a in A] print(' '.join(s))
Traceback (most recent call last): File "/tmp/tmpvit661r0/tmp4osbs5zg.py", line 3, in <module> A = input().strip() ^^^^^^^ EOFError: EOF when reading a line
s428582794
p02255
u293826729
1498125199
Python
Python3
py
Runtime Error
0
0
275
l = int(input) A = [ int(x) for x in input().strip()] for i in xrange(1,l): j = i-1 v = A[i] while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v s = [str(a) for a in A] print(' '.join(s))
Traceback (most recent call last): File "/tmp/tmpyx9_3b8p/tmp78ncc5xh.py", line 2, in <module> l = int(input) ^^^^^^^^^^ TypeError: int() argument must be a string, a bytes-like object or a real number, not 'builtin_function_or_method'
s670026922
p02255
u278938795
1498724511
Python
Python3
py
Runtime Error
0
0
296
import sys def printlist(lst): for l in lst: print(l), print N = int(sys.stdin.readline().strip()) A = sys.stdin.readline().strip().split(" ") A = map(lambda x:int(x),A) for i in range(0,N): temp = A[i] j = i-1 while j>=0 and A[j]>temp: A[j+1] = A[j] j-=1 A[j+1]=temp printlist(A)
Traceback (most recent call last): File "/tmp/tmp1y5d8l4o/tmppszyrvtl.py", line 8, in <module> N = int(sys.stdin.readline().strip()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: invalid literal for int() with base 10: ''
s798549048
p02255
u490583481
1499690772
Python
Python
py
Runtime Error
0
0
315
def insertionSort(*args): l = list(args) for i in range(1, n): v = l[i] j = i - 1 while j >= 0 and l[j] > v: l[j + 1] = l[j] j -= 1 l[j + 1] = v print ' '.join(map(str, l)) n = input() l = [input() for i in range(n)] insertionSort(*l)
File "/tmp/tmpad9its2q/tmp4hv4ajaa.py", line 10 print ' '.join(map(str, l)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s741636758
p02255
u988834390
1502770679
Python
Python
py
Runtime Error
0
0
479
""" 1 insertionSort(A, N) // N??????????´??????????0-?????????????????????A 2 for i ??? 1 ?????? N-1 ?????§ 3 v = A[i] 4 j = i - 1 5 while j >= 0 ?????? A[j] > v 6 A[j+1] = A[j] 7 j-- 8 A[j+1] = v """ N=int(input()) A=input().split() for i in range(1,N): v=A[i] j=i-1 while j>=0 and A[j]>v: A[j+1]=A[j] j-=1 A[j+1]=v for j in range(N): print(str(A[j]),end=' ') if j==N-1: print('\b')
Traceback (most recent call last): File "/tmp/tmpcgre7oh9/tmp7fv7a43z.py", line 11, in <module> N=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s412318838
p02255
u853619096
1502861187
Python
Python3
py
Runtime Error
0
0
193
n=int(input()) z=list(map(int,input().split())) for i in range(1,n): v=z[i] j=i-1 while j>=0 and z[j]>v: z[j+1]=z[j] j-=1 z[j+1]=v print(''.join(z))
Traceback (most recent call last): File "/tmp/tmpfwvlfv3u/tmpjeb8n332.py", line 1, in <module> n=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s126733764
p02255
u733159526
1503289027
Python
Python3
py
Runtime Error
0
0
717
def output(list): for i,row in enumerate(list): if i == 0: print(row,end='') else: print('',row,end='') s = input() list = list(map(int,input().split())) output(list) print() #print(list) start = time.time() i = 0 for count in range(len(list)-1): # Judge: now > next if list[i] > list[i+1]: # Change: now > next ins_num = list[i+1] list[i+1] = list[i] list[i] = ins_num j = i - 1 while j >= 0: if list[j] > ins_num: list[j+1] = list[j] list[j] = ins_num j -= 1 output(list) else: output(list) print() i += 1
Traceback (most recent call last): File "/tmp/tmpokq6nw1l/tmp9uef4jia.py", line 9, in <module> s = input() ^^^^^^^ EOFError: EOF when reading a line
s507572442
p02255
u733159526
1503289253
Python
Python3
py
Runtime Error
0
0
962
def output(list): for i,row in enumerate(list): if i == 0: print(row,end='') else: print('',row,end='') def main(): s = input() s_list = [] s_list = list(map(int,input().split())) output(s_list) print() #print(list) start = time.time() i = 0 for count in range(len(s_list)-1): # Judge: now > next if s_list[i] > s_list[i+1]: # Change: now > next ins_num = s_list[i+1] s_list[i+1] = s_list[i] s_list[i] = ins_num j = i - 1 while j >= 0: if s_list[j] > ins_num: s_list[j+1] = s_list[j] s_list[j] = ins_num j -= 1 output(s_list) else: output(s_list) print() i += 1 result = time.time() - start #print(result) #print(list) if __name__ == '__main__': main()
Traceback (most recent call last): File "/tmp/tmpmwyd1r4y/tmpk2chmnuh.py", line 49, in <module> main() File "/tmp/tmpmwyd1r4y/tmpk2chmnuh.py", line 9, in main s = input() ^^^^^^^ EOFError: EOF when reading a line
s030585234
p02255
u821624310
1503306571
Python
Python3
py
Runtime Error
0
0
222
import output N = int(input()) A = [int(n) for n in input().split()] for i in range(1, N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v output.print_1(A)
Traceback (most recent call last): File "/tmp/tmpinqp9h_8/tmprueqrhk8.py", line 1, in <module> import output ModuleNotFoundError: No module named 'output'
s587549472
p02255
u821624310
1503306955
Python
Python3
py
Runtime Error
0
0
240
import output N = int(input()) A = [int(n) for n in input().split()] output.print_1(A) for i in range(1, N): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j+1] = A[j] j -= 1 A[j+1] = v output.print_1(A)
Traceback (most recent call last): File "/tmp/tmp5nmq02dn/tmpxc8csgl0.py", line 1, in <module> import output ModuleNotFoundError: No module named 'output'
s201415145
p02255
u153665391
1504616966
Python
Python3
py
Runtime Error
0
0
244
nums = int(input()) array = [int(n) for n in input().split()] for i in range( 1, nums ): v = array[i] j = i - 1 while j >= 0 and array[j] > v: array[j+1] = array[j] j -= 1 array[j+1] = v print array
File "/tmp/tmpm95v4ht2/tmplgcc426l.py", line 11 print array ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s541214569
p02255
u153665391
1504618230
Python
Python3
py
Runtime Error
0
0
234
nums = int(input()) array = list(map(int, input().split())) for i in range( 1, nums ): v = array[i] j = i - 1 while j >= 0 and array[j] > v: array[j+1] = array[j] j -= 1 array[j+1] = v print array
File "/tmp/tmpd9_j5bm_/tmpsx6t0gcc.py", line 11 print array ^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
s724469568
p02255
u043968625
1509277717
Python
Python3
py
Runtime Error
0
0
349
kazu=input() A=[int(i) for i in range(kazu)] # kazu=6 # A=[5,2,4,6,1,3] j=0 for i in range(kazu - 1): print(A[i], end=" ") print(A[kazu-1]) for i in range(1,kazu): v=A[i] j=i-1 while j>=0 and A[j] >v: A[j+1]=A[j] j =j -1 A[j+1]=v for i in range(kazu-1): print(A[i],end=" ") print(A[kazu-1])
Traceback (most recent call last): File "/tmp/tmpr7e0s3j2/tmp58xdwyvv.py", line 1, in <module> kazu=input() ^^^^^^^ EOFError: EOF when reading a line
s386141160
p02255
u043968625
1509278620
Python
Python3
py
Runtime Error
0
0
359
kazu=int(input()) A=[int(i) for i in input().spllit()] # kazu=6 # A=[5,2,4,6,1,3] j=0 for i in range(kazu - 1): print(A[i], end=" ") print(A[kazu-1]) for i in range(1,kazu): v=A[i] j=i-1 while j>=0 and A[j] >v: A[j+1]=A[j] j =j -1 A[j+1]=v for i in range(kazu-1): print(A[i],end=" ") print(A[kazu-1])
Traceback (most recent call last): File "/tmp/tmp_kvr70u6/tmpjgc_chl9.py", line 1, in <module> kazu=int(input()) ^^^^^^^ EOFError: EOF when reading a line
s490684059
p02255
u335508235
1509330708
Python
Python
py
Runtime Error
0
0
229
#coding: UTF-8 x=[4,50,3,10,89,37,1,15] for i in range(1,len(x)): j=i while (j>0) and (x[j-1] > x[j]) : tmp=x[j-1] x[j-1]=x[j] x[j]=tmp j -= 1 print x print "-"*30 print x
File "/tmp/tmps91yow_n/tmpcd140hlm.py", line 9 while (j>0) and (x[j-1] > x[j]) ^ SyntaxError: expected ':'
s299016287
p02255
u335508235
1509330809
Python
Python
py
Runtime Error
0
0
218
#coding: UTF-8 x=[5,2,6,1,3] for i in range(1,len(x)): j=i while (j>0) and (x[j-1] > x[j]) : tmp=x[j-1] x[j-1]=x[j] x[j]=tmp j -= 1 print x print "-"*30 print x
File "/tmp/tmpojrotl3a/tmpmy091b7q.py", line 9 while (j>0) and (x[j-1] > x[j]) ^ SyntaxError: expected ':'
s703333403
p02255
u335508235
1509331208
Python
Python
py
Runtime Error
0
0
206
#coding: UTF-8 x=[4,50,3,10,89,37,1,15] for i in range(1,len(x)): j=i while (j>1) and (x[j-1] > x[j]) : tmp=x[j-1] x[j-1]=x[j] x[j]=tmp j -= 1 print x
File "/tmp/tmpxgk8vpqf/tmprm0faq1c.py", line 9 while (j>1) and (x[j-1] > x[j]) ^ SyntaxError: expected ':'
s760561483
p02255
u102664642
1509777254
Python
Python3
py
Runtime Error
0
0
171
n = map(int, input()) l = map(int, input().split()) for i in range(n): key = l[i + 1] j = i while j >= 0 and l[j] > key: l[j+1] = l[j] j -= 1 l[j+1] = key
Traceback (most recent call last): File "/tmp/tmp1kz5pqof/tmpa0wjya8s.py", line 1, in <module> n = map(int, input()) ^^^^^^^ EOFError: EOF when reading a line
s727582024
p02255
u102664642
1509777751
Python
Python3
py
Runtime Error
0
0
183
n = list(map(int, input())) l = list(map(int, input().split())) for i in range(n): key = l[i + 1] j = i while j >= 0 and l[j] > key: l[j+1] = l[j] j -= 1 l[j+1] = key
Traceback (most recent call last): File "/tmp/tmp0acgf6wv/tmph5jgecf6.py", line 1, in <module> n = list(map(int, input())) ^^^^^^^ EOFError: EOF when reading a line
s104646924
p02255
u102664642
1509798398
Python
Python3
py
Runtime Error
0
0
225
n = int(input()) l = [int(m) for m in input().split() ] print(n) for i in range(1,n): key = l[i] j = i 0 1 while j >= 0 and l[j] > key: l[j+1] = l[j] j -= 1 l[j+1] = key print(" ".join(str(x) for x in l))
File "/tmp/tmpp1c2dwfe/tmp53_gp61h.py", line 7 j = i 0 1 ^ SyntaxError: invalid syntax
s642019385
p02255
u626266743
1510019960
Python
Python3
py
Runtime Error
0
0
197
N = int(input()) A = list(map(int, input().split())) for i in range(N): v = A[i] j = i - 1 while((j <= 0) and A(j) > v): A[j+1] = A[j] j -= 1 A[j+1] = v print(A)
Traceback (most recent call last): File "/tmp/tmp3y87uub6/tmp_rs7lk9p.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s202157377
p02255
u626266743
1510020041
Python
Python3
py
Runtime Error
0
0
197
N = int(input()) A = list(map(int, input().split())) for i in range(N): v = A[i] j = i - 1 while((j >= 0) and A(j) > v): A[j+1] = A[j] j -= 1 A[j+1] = v print(A)
Traceback (most recent call last): File "/tmp/tmp2_fbch1j/tmp25bhvwwp.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s699758636
p02255
u845643816
1510106901
Python
Python3
py
Runtime Error
0
0
263
N = int(input()) array = map(int, input().split()) print( array, split = ' ') for i in range(N): for j in reversed(range(i-1)): if array[i] < array[j]: array[j + 1] = array[j] else: break print( array, split = ' ')
Traceback (most recent call last): File "/tmp/tmpc7iexnh4/tmp90em6tjk.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s479939789
p02255
u845643816
1510107233
Python
Python3
py
Runtime Error
0
0
245
N = int(input()) array = map(int, input().split()) print( array, split = ' ') for i in range(N): for j in reversed(range(i-1)): if array[i] > array[j]: break array[j + 1] = array[j] print( array, split = ' ')
Traceback (most recent call last): File "/tmp/tmp220rup1v/tmpiexi7ila.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s451221397
p02255
u845643816
1510107247
Python
Python3
py
Runtime Error
0
0
219
N = int(input()) array = map(int, input().split()) print( array) for i in range(N): for j in reversed(range(i-1)): if array[i] > array[j]: break array[j + 1] = array[j] print( array)
Traceback (most recent call last): File "/tmp/tmpp5rv01be/tmp3ymvoqv4.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s666422789
p02255
u845643816
1510107953
Python
Python3
py
Runtime Error
0
0
219
N = int(input()) array = map(int, input().split()) print(*array) for i in range(N): for j in reversed(range(i-1)): if array[i] > array[j]: break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmptkdvdzjp/tmp217vledj.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s199540746
p02255
u845643816
1510107984
Python
Python3
py
Runtime Error
0
0
222
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in reversed(range(i-1)): if array[i] > array[j]: break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmpo7kvh_k9/tmpswk6s_4a.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s342375121
p02255
u845643816
1510107992
Python
Python3
py
Runtime Error
0
0
225
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in reversed(range(1, i-1)): if array[i] > array[j]: break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp896bsqfo/tmpix5i19ag.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s834083830
p02255
u845643816
1510108029
Python
Python3
py
Runtime Error
0
0
231
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in list(reversed(range(1, i-1))): if array[i] > array[j]: break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp9j5sezy5/tmp7m23qec8.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s786880479
p02255
u845643816
1510108141
Python
Python3
py
Runtime Error
0
0
264
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in list(reversed(range(i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp8qy1l_2b/tmpck0pix4u.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s946688382
p02255
u845643816
1510108176
Python
Python3
py
Runtime Error
0
0
264
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in list(reversed(range(i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp8njuh45q/tmp3n8ze3df.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s481332886
p02255
u845643816
1510108341
Python
Python3
py
Runtime Error
0
0
269
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(reversed(1, range(i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp8kmvj7so/tmp6yvk0k5a.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s368456293
p02255
u845643816
1510108354
Python
Python3
py
Runtime Error
0
0
269
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(reversed(range(1, i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmpkeo2_20n/tmp78bwovk6.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s373060062
p02255
u845643816
1510108835
Python
Python3
py
Runtime Error
0
0
240
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(reversed(range(1, i-1))): if array[i] > array[j]: print(*rray) array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmpkhditx3w/tmpgdeaydzy.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s025316858
p02255
u845643816
1510108843
Python
Python3
py
Runtime Error
0
0
230
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(range(1, i-1)): if array[i] > array[j]: print(*rray) array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp7lw745ym/tmpvdqxopzm.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s166855676
p02255
u845643816
1510108855
Python
Python3
py
Runtime Error
0
0
187
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(range(1, i-1)): if array[i] > array[j]: array[j + 1] = array[j]
File "/tmp/tmpuu8l766j/tmpmv6u1ooe.py", line 8 array[j + 1] = array[j] ^ IndentationError: expected an indented block after 'if' statement on line 7
s967080596
p02255
u845643816
1510108864
Python
Python3
py
Runtime Error
0
0
181
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in range(1, i-1): if array[i] > array[j]: array[j + 1] = array[j]
File "/tmp/tmpczq_xcam/tmpl8l4nmbd.py", line 8 array[j + 1] = array[j] ^ IndentationError: expected an indented block after 'if' statement on line 7
s448166226
p02255
u845643816
1510108942
Python
Python3
py
Runtime Error
0
0
184
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(reversed(range(1, i-1))): array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmpdlxqllvc/tmpib1jlo91.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s223855472
p02255
u845643816
1510108964
Python
Python3
py
Runtime Error
0
0
251
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in range(1, i): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp9p2oam4g/tmpkr6a3tw9.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s503506716
p02255
u845643816
1510108988
Python
Python3
py
Runtime Error
0
0
269
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N-1): for j in list(reversed(range(1, i-1))): if array[i] > array[j]: array[j + 1] = array[i] else: array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmprjbgr9bs/tmp4ru1h_kj.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s827654682
p02255
u845643816
1510109141
Python
Python3
py
Runtime Error
0
0
269
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in array(reversed(range(1, i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmp55fpn_pg/tmpb6duvyql.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s221038469
p02255
u845643816
1510109151
Python
Python3
py
Runtime Error
0
0
252
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in range(1, i-1): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmpte1obeay/tmp2gu7wmux.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s476425403
p02255
u845643816
1510109311
Python
Python3
py
Runtime Error
0
0
268
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in list(reversed(range(1, i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmphw3mgicw/tmpayzin7oa.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s856624655
p02255
u845643816
1510109701
Python
Python3
py
Runtime Error
0
0
268
N = int(input()) array = map(int, input().split()) print(*array) for i in range(1, N): for j in list(reversed(range(0, i-1))): if array[i] > array[j]: array[j + 1] = array[i] break array[j + 1] = array[j] print(*array)
Traceback (most recent call last): File "/tmp/tmplh2o6ekr/tmpjh0dz_ts.py", line 1, in <module> N = int(input()) ^^^^^^^ EOFError: EOF when reading a line
s536794210
p02255
u426534722
1510153745
Python
Python3
py
Runtime Error
0
0
304
def insertionSort(n, A): print(*A) for i in range(1, n): v = A[i] j = i - 1 while j >= 0 and A[j] > v: A[j + 1] = A[j] j -= 1 A[j + 1] = v print(*A) n = int(readline()) A = [int(j) for j in readline().split(" ")] insertionSort(n, A)
Traceback (most recent call last): File "/tmp/tmpeyljc_3g/tmpd09j5rdi.py", line 11, in <module> n = int(readline()) ^^^^^^^^ NameError: name 'readline' is not defined
s673222136
p02255
u933096856
1510304975
Python
Python
py
Runtime Error
0
0
118
n=int(raw_input()) l=list(map(int, raw_input().split())) for i in range(1,n+1): l[0:i]=sorted(l[0:i]) print *l
Traceback (most recent call last): File "/tmp/tmp8q3a0lb0/tmpatg3471q.py", line 1, in <module> n=int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s322153026
p02255
u933096856
1510304991
Python
Python
py
Runtime Error
0
0
118
n=int(raw_input()) l=list(map(int, raw_input().split())) for i in range(1,n+1): l[0:i]=sorted(l[0:i]) print *l
Traceback (most recent call last): File "/tmp/tmptfsioejp/tmpdb7mkg1a.py", line 1, in <module> n=int(raw_input()) ^^^^^^^^^ NameError: name 'raw_input' is not defined
s028801968
p02255
u335508235
1510558602
Python
Python
py
Runtime Error
0
0
99
for i in range(1,len(A)-1) v=A[i] j=i-1 while(j>0) and (A[j]>v) A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmp6_umd4f2/tmpomk2j0zz.py", line 1 for i in range(1,len(A)-1) ^ SyntaxError: expected ':'
s179347713
p02255
u335508235
1510558679
Python
Python
py
Runtime Error
0
0
99
for i in range(1,len(A)-1) v=A[i] j=i-1 while(j>0) and (A[j]>v) A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmp_cc62a67/tmpv46ufgax.py", line 1 for i in range(1,len(A)-1) ^ SyntaxError: expected ':'
s476746320
p02255
u335508235
1510558853
Python
Python
py
Runtime Error
0
0
115
A=[1,22,3,1,11] for i in range(1,len(A)-1) v=A[i] j=i-1 while(j>0) and (A[j]>v) A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmp4urvpg2h/tmp5wfsoz23.py", line 2 for i in range(1,len(A)-1) ^ SyntaxError: expected ':'
s857708736
p02255
u335508235
1510559030
Python
Python
py
Runtime Error
0
0
113
A=[1,22,3,1,11] for i in range(1,len(A)) v=A[i] j=i-1 while(j>0) and (A[j]>v) A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmp4n24szyy/tmp0krxp3dn.py", line 2 for i in range(1,len(A)) ^ SyntaxError: expected ':'
s276840728
p02255
u335508235
1510559692
Python
Python
py
Runtime Error
0
0
109
A=input() for i in range(1,len(A)-1) v=A[i] j=i-1 while(j>0) and (A[j]>v) A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmpet8bn_ej/tmps4tt_tzx.py", line 2 for i in range(1,len(A)-1) ^ SyntaxError: expected ':'
s248622757
p02255
u335508235
1510559923
Python
Python
py
Runtime Error
0
0
114
A=[5,6,4,1,11] for i in range(1,len(A)-1) v=A[i] j=i-1 while(j>0) and (A[j]>v) A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmpkpdhhi_v/tmp0urfti9h.py", line 2 for i in range(1,len(A)-1) ^ SyntaxError: expected ':'
s894240497
p02255
u335508235
1510560033
Python
Python
py
Runtime Error
0
0
116
A=[5,6,4,1,11] for i in range(1,len(A)-1): v=A[i] j=i-1 while(j>0) and (A[j]>v): A[j+1] = A[j] j-=1 A[j+1]=v
File "/tmp/tmp3bky233u/tmp9cwwob3t.py", line 3 v=A[i] ^ IndentationError: expected an indented block after 'for' statement on line 2
s202942185
p02255
u335508235
1510560164
Python
Python
py
Runtime Error
0
0
134
A=[5,6,4,1,11] for i in range(1,len(A)-1): v=A[i] j=i-1 while(j>0) and (A[j]>v): A[j+1] = A[j] j-=1 A[j+1]=v print A
File "/tmp/tmp5ixz0bt5/tmpng0wv_h_.py", line 4 j=i-1 IndentationError: unexpected indent
s930164096
p02255
u335508235
1510560219
Python
Python
py
Runtime Error
0
0
135
A=[5,6,4,1,11] for i in range(1,len(A)-1): v=A[i] j=i-1 while(j>0) and (A[j]>v): A[j+1] = A[j] j-=1 A[j+1]=v print A
File "/tmp/tmpcyru6kox/tmpsdkv8xdx.py", line 5 j=i-1 IndentationError: unexpected indent
s045519640
p02255
u335508235
1510560299
Python
Python
py
Runtime Error
0
0
136
A=[5,2,4,6,1,3] for i in range(1,len(A)-1): v=A[i] j=i-1 while(j>0) and (A[j]>v): A[j+1] = A[j] j-=1 A[j+1]=v print A
File "/tmp/tmpxtgpo62_/tmp5lqflv6g.py", line 5 j=i-1 IndentationError: unexpected indent
s438658788
p02255
u335508235
1510560429
Python
Python
py
Runtime Error
0
0
158
A = [5,2,4,6,1,3] for i in range(1, len(A) - 1): v = A[i] j = I - 1 while(j > 0) and (A[j] > v): A[j + 1] = A[j] j -= 1 A[j + 1] = v print A
File "/tmp/tmpmv2gfolr/tmpbh7szz0y.py", line 4 j = I - 1 IndentationError: unexpected indent
s938665220
p02255
u335508235
1510560621
Python
Python
py
Runtime Error
0
0
174
#coding: UTF-8 A = [5,2,4,6,1,3] for i in range(1, len(A) - 1): v = A[i] j = I - 1 while(j > 0) and (A[j] > v): A[j + 1] = A[j] j -= 1 A[j + 1] = v print A
File "/tmp/tmpc4d3yb3a/tmppelnby3k.py", line 6 j = I - 1 IndentationError: unexpected indent
s660892116
p02255
u433154529
1510973383
Python
Python3
py
Runtime Error
0
0
201
n = int(input()) a = [int(i) for i in input().split()] for i in range(len(a)): v = a[i] j = i while j >= 0 and a[j]>v: a[j+1] = a[j] j-=1 a[j+1]=v print(" ".join(a))
Traceback (most recent call last): File "/tmp/tmppizzc5dr/tmplw3uu4uj.py", line 1, in <module> n = int(input()) ^^^^^^^ EOFError: EOF when reading a line