ru
Feedback
Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO

Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO

Открыть в Telegram

Main channel https://t.me/Coding_000 Contact Admin 👉 @ILOVEU_143 for booking your exam slots Web- https://coding000.github.io/Projects/ 💯% clearance in any placement exams OffCampus -https://t.me/Offcampus_000 Discussion- https://t.me/exams_discussion

Больше
3 351
Подписчики
-124 часа
-147 дней
-4730 день
Архив постов
Any one want projects -mini or Major 😊 Domain AI/ML contact -@ILOVEU_143 Note -paid 🤑 share✅ share ✅@Coding_000

Guys No One can see movies yaar No comments 😕 upto now..

Guys anyone comment here 👇👇 i wanna see a movie now...

Guys share this group to ur frds add more friends 👍 share share share ✅✅

Any one want projects -mini or Major 😊 Domain AI/ML contact -@ILOVEU_143 Note -paid 🤑 share✅ share ✅@Coding_000

# A basic code for matrix input from user R = int(input()) C = int(input()) # Initialize matrix matrix = [] bool1 = [] # print("Enter the entries rowwise:") # For user input for i in range(R):   # A for loop for row entries a =[] bool2 = [] for j in range(C):  # A for loop for column entries   a.append(int(input()))   bool2.append(True) matrix.append(a) bool1.append(bool2) #For printing the matrix # for i in range(R): #  for j in range(C): #   print(bool1[i][j], end = " ") a=[] ans=0 for i in range(R):     for j in range(C):         if(matrix[i][j]==0):             #print("Hi")             if(i-1>=0 and bool1[i-1][j]==True):                 ans+=matrix[i-1][j]                 bool1[i-1][j]=False                         if(j-1>=0 and bool1[i][j-1]==True):                 ans+=matrix[i][j-1]                 bool1[i][j-1]=False                             if(i+1<R and bool1[i+1][j]==True):                 ans+=matrix[i+1][j]                 bool1[i+1][j]=False                         if(j+1<C and bool1[i][j+1]==True):                 ans+=matrix[i][j+1]                 bool1[i][j+1]=False print(ans)

Next time i will upload free ans here just share our channel to ur frds ✅😁