fork download
  1. def Ucitajvrednost(a, b, c):
  2. a, b = [int(i) for i in input().split()]
  3. if a <= 0 or b <= 0:
  4. exit()
  5. c = [int(i) for i in input().split()]
  6. return a, b, c
  7. vrsta = 0
  8. kolona = 0
  9. potezi = []
  10. vrsta, kolona, potezi = Ucitajvrednost(vrsta, kolona, potezi)
  11. print(kolona)
  12. matrica = [[0]*kolona]*vrsta
  13. print(matrica)
Success #stdin #stdout 0.08s 14120KB
stdin
4 5
1 3 5 2 1 5
stdout
5
[[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]]