Skip to content

Commit 4aab135

Browse files
committed
[level 0] Title: 각도기, Time: 0.00 ms, Memory: 9.13 MB -BaekjoonHub
1 parent 19c926e commit 4aab135

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

프로그래머스/0/120829. 각도기/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# [level 0] 각도기 - 120829
22

3-
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120829)
3+
[문제 링크](https://school.programmers.co.kr/learn/courses/30/lessons/120829?language=python3)
44

55
### 성능 요약
66

7-
메모리: 10.1 MB, 시간: 0.00 ms
7+
메모리: 9.13 MB, 시간: 0.00 ms
88

99
### 구분
1010

@@ -16,7 +16,7 @@
1616

1717
### 제출 일자
1818

19-
2024년 08월 26일 16:07:11
19+
2025년 05월 09일 15:07:34
2020

2121
### 문제 설명
2222

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# solution=lambda r: 1 if 0<r<90 else 2 if r==90 else 3 if 90<r<180 else 4
2-
solution=lambda r: 1 + (r==90) + 2*(90<r<180) + 3*(r==180)
1+
solution=lambda x: (x//90)*2 + bool(x%90)

0 commit comments

Comments
 (0)