From cdb6cccb89de88af40aa26302483f753c12a8b2a Mon Sep 17 00:00:00 2001
From: mhrooz <cxyoz@outlook.com>
Date: Sun, 2 Jun 2024 21:25:22 +0200
Subject: [PATCH] easy nie

---
 74-240602-pass/main.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 74-240602-pass/main.py

diff --git a/74-240602-pass/main.py b/74-240602-pass/main.py
new file mode 100644
index 0000000..eeb3a14
--- /dev/null
+++ b/74-240602-pass/main.py
@@ -0,0 +1,13 @@
+class Solution:
+    def searchMatrix(self, matrix: List[List[int]], target: int) -> bool:
+        ind = len(matrix) - 1
+        for x, l in enumerate(matrix):
+            if l[0] < target: continue
+            if l[0] == target: return True
+            if x != 0: ind = x - 1
+            break
+        l = matrix[ind]
+        print(l)
+        if target in l:
+            return True
+        return False
\ No newline at end of file