top of page

소스 코드 제출

공개·회원 50명

20250820


a,b = map(int, input().split())
c=int(input())

m = []
for i in range(a) :
    d = [0]*b
    m.append(d)

for i in range(c) :
    l, d, x, y = map(int,input().split())
    x-=1
    y-=1
    if d == 0 :
        for e in range(l) :
            m[x][y+e] = 1
    else :
        for e in range(l) :
            m[x+e][y] = 1

for i in range(len(m)) :
    for j in range(len(m[i])) :
        print(m[i][j],end=' ')
    print()


2회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page