From 27a8fe22d33d90d3b8d1f201eac030ddf7eb79af Mon Sep 17 00:00:00 2001 From: Poornapragna Mathh <54894632+poornapragna877@users.noreply.github.com> Date: Thu, 1 Oct 2020 09:16:08 +0530 Subject: [PATCH] Update 404.cxx Updated 404.cxx made handy with macro --- 404.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/404.cxx b/404.cxx index 0fbf0ad..2fd1783 100644 --- a/404.cxx +++ b/404.cxx @@ -24,22 +24,23 @@ #include using namespace std; +#define fo(x,n) for(int x = 0; x < n; x++) int main() { long long int n,i,j,c=0,d=0; char t,b; cin >> n; char a[n][n]; - for(i=0;i> a[i][j]; t=a[0][0];b=a[0][1]; if(t==b){ cout << "NO"; return 0; } - for(i=0;i