Dimitar23308

MATRIX

May 15th, 2025
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.34 KB | None | 0 0
  1. 1
  2. # N = int(input())
  3. # matrica = []
  4. # broi = 0
  5. # for i in range(N):
  6. #     red = []
  7. #     for j in range(N):
  8. #         red.append(broi)
  9. #         broi += 1
  10. #     matrica.append(red)
  11. #
  12. # for red in matrica:
  13. #     print(red)
  14. #
  15. # transponirana = []
  16. # for i in range(N):
  17. #     red = []
  18. #     for j in range(N):
  19. #         red.append(matrica[j][i])
  20. #     transponirana.append(red)
  21. #
  22. # for red in transponirana:
  23. #     print(red)
  24. 2
  25. # N, M = map(int, input().split())
  26. #
  27. # original = []
  28. # for i in range(N):
  29. #     red = ['X'] * M
  30. #     original.append(red)
  31. #
  32. #
  33. # kopie = [r.copy() for r in original]
  34. # for i in range(N):
  35. #     x, y = map(int, input().split())
  36. #     kopie[x][y] = 'O'
  37. #
  38. # for red in original:
  39. #     print(red)
  40. #
  41. # for red in kopie:
  42. #     print(red)
  43. 3
  44. # komanda = input()
  45. # n = int(input())
  46. #
  47. # chisla = []
  48. # for _ in range(n):
  49. #     chislo = int(input())
  50. #     chisla.append(chislo)
  51. # filtrirani = []
  52. #
  53. # for chislo in chisla:
  54. #     if komanda == "even" and chislo % 2 == 0:
  55. #         filtrirani.append(chislo)
  56. #     elif komanda == "odd" and chislo % 2 != 0:
  57. #         filtrirani.append(chislo)
  58. #     elif komanda == "negative" and chislo < 0:
  59. #         filtrirani.append(chislo)
  60. #     elif komanda == "positive" and chislo >= 0:
  61. #         filtrirani.append(chislo)
  62. #
  63. # for chislo in filtrirani:
  64. #     print(chislo)
  65. 4
  66. # tochki = []
  67. #
  68. # while True:
  69. #     vhod = input()
  70. #     if vhod == "Finish":
  71. #         break
  72. #     tochka = int(vhod)
  73. #     tochki.append(tochka)
  74. #
  75. # broi_igri = len(tochki)
  76. # nai_malka = min(tochki)
  77. # nai_golyama = max(tochki)
  78. #
  79.  
  80. # sredno = sum(tochki) // broi_igri
  81. #
  82. #
  83. # print(f"Count of plays: {broi_igri}")
  84. # print(f"Worst play: {nai_malka}")
  85. # print(f"Best play: {nai_golyama}")
  86. # print(f"Average points: {sredno}")
  87.  
  88.  
  89. 5
  90. # ocenki = []
  91. #
  92. # while True:
  93. #     vhod =input()
  94. #     if vhod == "END":
  95. #         break
  96. #     ocenka = int(vhod)
  97. #     ocenki.append(ocenka)
  98. #
  99. #
  100. # broi_ocenki = len(ocenki)
  101. # nai_niska = min(ocenki)
  102. # nai_visoka= max(ocenki)
  103. # broi_shestici =ocenki.count(6)
  104. # sredno = sum(ocenki)/broi_ocenki
  105. #
  106. #
  107. # print(f"Count of evaluations: {broi_ocenki}")
  108. # print(f"Worst evaluation: {nai_niska}")
  109. # print(f"Best evaluation: {nai_visoka}")
  110. # print(f"Stamat has a count of sixes {broi_shestici}")
  111. # print(f"Average evaluation: {sredno:.2f}")
  112.  
  113.    
Advertisement
Add Comment
Please, Sign In to add comment