题解 | #箱子归位#
箱子归位
https://ac.nowcoder.com/acm/problem/22212
#include<bits/stdc++.h>
using namespace std;
int x,y;
int main(){
for(x=-2;x<=2;x++){
for(y=-2;y<=2;y++){
int t;
cin>>t;
if(t==1) goto out;
}
}
out:
cout<<abs(x)+abs(y);
return 0;
}