차세대 지능형 교통시스템 반례좀 부탁드립니다.
import sys
# input
N, T = map(int, input().split())
signals = [[]*N for _ in range(N)]
for x in range(N):
for y in range(N):
signals[y].append(list(map(int, input().split())))
l = 'left'
r = 'right'
u = 'up'
d = 'down'
signal_def = [
[r,[u,r,d]],[u,[l,u,r]],[l,[u,l,d]],[d,[l,d,r]],
[r,[r,u]],[u,[u,l]],[l,[l,d]],[d,[d,r]],
[r,[r,d]],[u,[u,r]],[l,[l,u]],[d,[d,l]],
]
signal_map = {l:(-1,0), r:(1,0), u:(0,-1), d:(0,1)}
dir_map = {l:0, r:1, u:2, d:3}
...
- 연습문제 톡
- 날짜
- 2021-10-14 21:17:57
- 작성자
- marcha
- 댓글
- 3
#[hsat_1회_정기_코딩_인증평가_기출]_안전운전을_도와줄_차세대_지능형_교통시스템
#python
#practice