#include <stdio.h
int main() {
int x,y,n,h=0,g=1;
int A[1001][1001],B[1001][1001],C[1000];
scanf("%d %d",&x,&y);
for(int i=0;i<y;i++)
{
for(int j=0;j<x;j++)
{
scanf("%d",&n);
A[j][i]=n;
}
}
B[0][0]=0;
B[0][1]=0;
while(h<g)
{
x=B[h][0];
y=B[h][1];
if(x==A[h][t] && y=A[h][t])
{
break;
}
if(x<A[h][t] && x<A[h][t])
{
B[h][0]=1;
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: