Y题WA求救!!

https://www.xinyoudui.com/contest?courses=565&books=515&pages=16328&fragments=50761&problemId=1186

1 个赞

加上开头,结尾,输入

1 个赞

关键代码

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

2 个赞

我试试

1 个赞

2 个赞

OK,AC了

1 个赞

谢谢

1 个赞

thank you

?你也不会

addd

留个赞就行

勉为其难