fork download
  1. a,b=map(int,input().split())
  2. d=[]
  3. for i in range(a):
  4. c=input().split()
  5. if len(c)==a:
  6. for j in range(a):
  7. if int(c[j]) < b:
  8. d.append(c[j])
  9. print(d)
  10. else:
  11. break
  12.  
Runtime error #stdin #stdout #stderr 0.13s 23404KB
stdin
10 5
1 10 4 9 2 3 8 5 7 6
stdout
['1', '4', '2', '3']
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
EOFError: EOF when reading a line