Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion hadongun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
| 7μ°¨μ‹œ | 2025.04.07 | μŠ€νƒ | [κ· ν˜• 작힌 세상](https://www.acmicpc.net/problem/4949)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/25|
| 8μ°¨μ‹œ | 2025.04.09 | 그리디 μ•Œκ³ λ¦¬μ¦˜ | [μ•Œλ°”μƒ κ°•ν˜Έ](https://www.acmicpc.net/problem/1758)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/29|
| 9μ°¨μ‹œ | 2025.05.02 | μŠ€νƒ | [제둜](https://www.acmicpc.net/problem/10773)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/36|
| 10μ°¨μ‹œ| 2025.05.07 | μˆ˜ν•™ | [톡계학](https://www.acmicpc.net/problem/2108)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/36|
| 10μ°¨μ‹œ| 2025.05.07 | μˆ˜ν•™ | [톡계학](https://www.acmicpc.net/problem/2108)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/36|
| 11μ°¨μ‹œ| 2025.05.09 | λ‹€μ΄λ‚˜λ―Ή ν”„λ‘œκ·Έλž˜λ° | [2xn 타일링](https://www.acmicpc.net/problem/11726)||
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import math

n = int(input())
method_num = 0

for i in range(0, n // 2 + 1): # μ„Έλ‘œ λΈ”λŸ­μ˜ 개수 i (2μΉΈμ”© μ°¨μ§€)
method_num += math.comb(n - i, i) # 총 n - i개 자리 쀑 i개 μ„Έλ‘œ μœ„μΉ˜ 선택

print(method_num % 10007)
28 changes: 28 additions & 0 deletions hadongun/μŠ€νƒ/였큰수.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import sys
N = int(input())
Numlist = []
Numlist = list(map(int, input().split()))
reverse = Numlist[::-1]
if N==1:
print(-1)
sys.exit()
while len(reverse):
check = True
currunt = reverse.pop()

for i in range(len(reverse), 0, -1):
if reverse[i-1] > currunt:
Max = reverse[i-1]
check = False
break
if check:
print(-1, end=' ')
continue

print(Max, end=' ')

if len(reverse) == 1:
print(-1)
sys.exit()