Skip to content

Commit

Permalink
2024-05-10 영화감독 숌
Browse files Browse the repository at this point in the history
  • Loading branch information
pu2rile committed May 10, 2024
1 parent f899cda commit 477b310
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pu2rile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
| 2차시 | 2024.03.29 | 구현 | [OX퀴즈](https://www.acmicpc.net/problem/8958) | [#6](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/6#issue-2214931034)|
| 3차시 | 2024.04.02 | 문자열 | [크로아티아 알파벳](https://www.acmicpc.net/problem/8958) | [#10](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/10#issue-2220631332)
| 4차시 | 2024.04.08 | 스택 | [제로](https://www.acmicpc.net/problem/10773) | [#15](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/15#issue-2229909173)
<<<<<<< Updated upstream
=======
| 5차시 | 2024.04.10 | 그리디 알고리즘 | [국회의원 선거](https://www.acmicpc.net/problem/1417) | [#18](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/18#issue-2235862658)
| 6차시 | 2024.05.10 | 그리디 알고리즘 | [ATM](https://www.acmicpc.net/problem/11399) | [#25](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/25#issue-2289086909)
| 7차시 | 2024.05.10 | 완전 탐색 알고리즘 | [영화감독 숌](https://www.acmicpc.net/problem/1436) | [#26](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/25#issue-2289086909)
>>>>>>> Stashed changes
12 changes: 12 additions & 0 deletions pu2rile/완전 탐색 알고리즘/영화감독 숌.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
n = int(input())
cnt = 0
six = 666
while True:
if '666' in str(six):
cnt += 1
if cnt == n:
break

six += 1

print(six)

0 comments on commit 477b310

Please sign in to comment.