728x90
반응형
단순 구현 문제이다.
N, a, b = map(int, input().split())
li = [list(map(int, input().split())) for _ in range(N)]
res = "HAPPY"
t = li[a-1][b-1]
if t < max([li[i][b-1]for i in range(N)]) or t < max([li[a-1][j]for j in range(N)]):
res = "ANGRY"
print(res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15818번 오버플로우와 모듈러(python) (0) | 2021.02.27 |
---|---|
백준 알고리즘 15792번 A/B - 2(python) (0) | 2021.02.27 |
백준 알고리즘 15781번 헬멧과 조끼(python) (0) | 2021.02.27 |
백준 알고리즘 15780번 멀티탭 충분하니?(python) (0) | 2021.02.27 |
백준 알고리즘 15734번 명장 남정훈(python) (0) | 2021.02.27 |