for (int h = 0; h < 4; h++) {
int minValue = a[h][0];
for (int i = h; i < h + 1; i++) {
for (j = w; j < w + 3; j++) {
if (a[i][j] < minValue) {
minValue = a[i][j];
}
}
}
System.out.println("Minimum Value = " + minValue);
}
我想找到缝线雕刻,但算法效果不佳。据我所知,我需要在所选索引下找到最小值