您得到一个代表地图的行x列格,其中格[i][j] = 1代表土地,格[i][j] = 0代表水.格细胞连接水平/垂直 (不是对角).格完全被水包围,并且有一个岛屿 (即一个或多个连接的陆地细胞).岛屿没有"湖泊",这意味着岛内水与岛周围的水不连接.一个细胞是一个边长的方形.格格是矩形,宽度和高度不超过100.确定岛屿的周围.
To determine the perimeter of the island, you can iterate through each cell in the grid and check if it is a land cell. For each land cell, count the number of adjacent water cells (above, below, left, and right), and add that count to the total perimeter.

Here's an example code in Python:

```
def islandPerimeter(grid):
    perimeter = 0
    for i in range(len(grid)):
        for j in range(len(grid[0])):
            if grid[i][j] == 1:
                perimeter += 4
                if i > 0 and grid[i-1][j] == 1:
                    perimeter -= 2
                if j > 0 and grid[i][j-1] == 1:
                    perimeter -= 2
    return perimeter
```

In the code above, we start by initializing the perimeter to zero. We then iterate through each cell in the grid, and if the cell is a land cell (value of 1), we add 4 to the perimeter (since each land cell has 4 sides). 

Next, we check if the adjacent cell above or to the left of the current land cell is also a land cell. If it is, we subtract 2 from the perimeter (since the common side between the two cells does not contribute to the total perimeter). 

Finally, we return the total perimeter once all cells have been checked.