懒得打字看我这里

sjbyshz CSP-J2一等 2022-07-21 10:37:11 16
            if (d[i + 1][j] == 1)
                ans++;
            if (d[i + 1][j + 1] == 1)
                ans++;
            if (d[i + 1][j - 1] == 1)
                ans++;
            if (d[i][j + 1] == 1)
                ans++;
            if (d[i][j - 1] == 1)
                ans++;
            if (d[i - 1][j] == 1)
                ans++;
            if (d[i - 1][j + 1] == 1)
                ans++;
            if (d[i - 1][j - 1] == 1)
                ans++;
{{ vote && vote.total.up }}