Skip to content

Commit 13e5823

Browse files
committed
내 풀이
1 parent 1037a4c commit 13e5823

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Diff for: 연습 예제 모음/217.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33

44
for i in range(2, x+1):
55
d[i] = d[i-1]-1
6-
if d[i]%5==0 :
6+
if i%5==0 :
77
d[i] = min(d[i], (d[i]//5)+1)
8-
if d[i]%2==0 :
8+
if i%2==0 :
99
d[i] = min(d[i], (d[i]//2)+1)
10-
if d[i]%3==0 :
10+
if i%3==0 :
1111
d[i] = min(d[i], (d[i]//2)+1)
1212

1313
print(d[x])
1414

15+
1516

1617

1718

Diff for: 정리.py

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def bfs(gragh, start, visited):
2222
queue.append(i)
2323
visited[i] = True
2424

25+
2526
#선택정렬, O(N**2)
2627
array = []
2728
for i in range(len(array)) :
@@ -39,6 +40,7 @@ def bfs(gragh, start, visited):
3940
else :
4041
break
4142

43+
4244
#퀵 정렬, O(NlogN)
4345
def quick(array):
4446
if len(array) <= 1 :

0 commit comments

Comments
 (0)