https://www.xinyoudui.com/contest?courses=565&books=515&pages=16328&fragments=50761&problemId=1186
加上开头,结尾,输入
关键代码
for (int i = 0; i < 5; i++) {
for (int j = 0; j < 5; j++) {
if (a[i][j] == 1) {
cout << abs(2 - i) + abs(2 - j);
}
}
}
个人测试,已ac
我试试
OK,AC了
谢谢
thank you
?你也不会
addd
留个赞就行
勉为其难