You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importsysreadl=sys.stdin.readlinesquares= [[int(i) foriinreadl().split()] for_inrange(4)]
deff():
""" area = 0 모든 좌표를 순회 if 좌표 in any squares: area += 1 """area=0forriinrange(1, 100):
forciinrange(1, 100):
forc0, r0, c1, r1insquares:
ifr0<=ri<r1:
ifc0<=ci<c1:
area+=1breakprint(area)
f()
Problem link
https://www.acmicpc.net/problem/2669
Problem abstraction
Design(Plan) algorithm
Algorithm idea
Pseudo-code
Validate algorithm
Impl
Self-feedback
구조적 접근: 문제를 추상화하여 구조적으로 접근했는가?
사고력: 알고리즘을 완전히 이해했는가? (충분한 사고력을 가졌는가?)
50분? 다른 아이디어를 너무 오래 고민함
더 빠른 알고리즘 (분기문 없이, 중복 비교도 없이)
https://www.acmicpc.net/source/8979413
구현력: 알고리즘을 신속, 정확하게 구현했는가?
The text was updated successfully, but these errors were encountered: