263A Codeforces - Beautiful matrix Mohamed Sobhi 1:27 م A Problems , Codeforces Edit 263A Codeforces Beautiful matrix Soultion in c++ #include <iostream> #include <cmath> using namespace std; int main() { int a,b; for(int i=1;i<=5;i++){ for(int o=1;o<=5;o++){ int h; cin>>h; if(h){ a=i; b=o; } } } cout<<abs(3-a)+abs(3-b); return 0; } Share on Facebook Share on Twitter Share on Google Plus About Mohamed Sobhi My name is Mo.Sobhy ,I study at School excelling high school in Ain Shams ,Cairo My hobbies is programming ,and web development ,playing chess and writing horror stories. RELATED POSTS 545A codeforces - Toy Cars427A codeforces - Police Recruits1013A codeforces - Piles with stone...
0 التعليقات:
إرسال تعليق