def solution(paper):
    grid = [[0]*100 for _ in range(100)]
    
    for x, y in paper:
        for i in range(x, x+10):
            for j in range(y, y+10):
                grid[i][j] = 1
    
    return sum(sum(row) for row in grid)

paper = [(3,7),(15,7),(5,2)]
ret = solution(paper)
print("solution 함수의 반환 값은", ret, "입니다.")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: