From 60c5d4cda421ea526e5b9070775c0477e9e1d575 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Wed, 7 Jun 2023 20:14:51 +0600 Subject: [PATCH] initial commit --- 263A-BeautifulMatrix/263A.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 263A-BeautifulMatrix/263A.cpp diff --git a/263A-BeautifulMatrix/263A.cpp b/263A-BeautifulMatrix/263A.cpp new file mode 100644 index 0000000..55ab0d9 --- /dev/null +++ b/263A-BeautifulMatrix/263A.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() +{ + int i,j,value,move,x,y; + for(i=1;i<=5;i++) + { + for(j=1;j<=5;j++) + { + cin>>value; + if(value==1) break; + } + if(value==1) break; + } + move= abs(i-3)+abs(j-3); + cout<