sir mera code test case 3 and 4 kyu nahi pass kar raha hai
#include
using namespace std;
int main()
{
int n,m;
cin>>n;
cin>>m;
char a[1000][1000];
int k;
cin>>k;
int s;
cin>>s;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
cin>>a[i][j];
}
}
int found=0;
for(int h=0;h<n;h++)
{
if(s<=k)
{
found=1;
break;
}
for(int l=0;l<n;l++)
{
s=s-1;
if((a[h][l]==β#β)||(l==n-1))
{
break;
}
else if(a[h][l]==β*β)
{
s=s+5;
}
else if(a[h][l]==β.β){
s=s-2;
}
}
}
if(found==1)
{
cout<<βNoβ;
}
else
{
cout<<βYesβ<<endl;
cout<<s;
}
return 0;
}