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
17 changes: 10 additions & 7 deletions hadongun/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
## ✏️ 기둝
### ✏️ 기둝

| μ°¨μ‹œ | λ‚ μ§œ | λ¬Έμ œμœ ν˜• | 링크 | 풀이 |
|:----:|:---------:|:----:|:-----:|:----:|
| 1μ°¨μ‹œ | 2024.10.01 | κ΅¬ν˜„ | [μΆ”μ–΅ 점수](https://school.programmers.co.kr/learn/courses/30/lessons/176963)|https://github.com/AlgoLeadMe/AlgoLeadMe-1/pull/35|
| 2μ°¨μ‹œ | 2025-03-21 | 그리디 μ•Œκ³ λ¦¬μ¦˜ | [λ‘œν”„] (https://www.acmicpc.net/problem/2217)
| 3μ°¨μ‹œ | 2025-03-21 | μˆ˜ν•™ | [보물] (https://www.acmicpc.net/problem/1026)
| 4μ°¨μ‹œ | 2025-03-27 | 큐 | [μΉ΄λ“œ2] (https://www.acmicpc.net/problem/2164)
| 5μ°¨μ‹œ | 2025-04-02 | μŠ€νƒ | [μŠ€νƒ2] (https://www.acmicpc.net/problem/28278)
| 6μ°¨μ‹œ | 2025-04-04 | μ •λ ¬ | [단어정렬](https://www.acmicpc.net/problem/1181)
| 1μ°¨μ‹œ | 2025.03.18 | 그리디 μ•Œκ³ λ¦¬μ¦˜ | [섀탕 배달](https://www.acmicpc.net/problem/2839)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/2|
| 2μ°¨μ‹œ | 2025.03.21 | 그리디 μ•Œκ³ λ¦¬μ¦˜ | [λ‘œν”„](https://www.acmicpc.net/problem/2217)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/7|
| 3μ°¨μ‹œ | 2025.03.25 | μˆ˜ν•™ | [보물](https://www.acmicpc.net/problem/1026)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/11|
| 4μ°¨μ‹œ | 2025.03.27 | 큐 | [ μΉ΄λ“œ2 ](https://www.acmicpc.net/problem/2164)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/13|
| 5μ°¨μ‹œ | 2025.04.02 | μŠ€νƒ | [μŠ€νƒ2](https://www.acmicpc.net/problem/28278)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/20|
| 6μ°¨μ‹œ | 2025.04.04 | μ •λ ¬ | [단어 μ •λ ¬](https://www.acmicpc.net/problem/1181)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/21|
| 7μ°¨μ‹œ | 2025.04.07 | μŠ€νƒ | [κ· ν˜• 작힌 세상](https://www.acmicpc.net/problem/4949)|https://github.com/AlgoLeadMe/AlgoLeadMe-13/pull/25|

---
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import sys
N = int(input())
tip_temp = map(int ,[sys.stdin.readline().strip() for _ in range(N)])
tip = list(tip_temp)
tip.sort(reverse = True)
receive = 0
for i in range(1, N + 1):
if tip[i-1] + 1 - i < 0:
continue
receive += (tip[i-1] + 1 - i)

print(receive)


64 changes: 64 additions & 0 deletions hadongun/μŠ€νƒ/κ· ν˜•μž‘νžŒ 세상.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import sys
while True:
charrr = sys.stdin.readline().rstrip()
if charrr == ".":
break
are_you_balanced = True
stack = []
for ch in charrr:
if ch == "(" or ch == "[":
stack.append(ch)
elif ch == ")":
if stack and stack[-1] == "(":
stack.pop()
else:
are_you_balanced = False
break
elif ch == "]":
if stack and stack[-1] == "[":
stack.pop()
else:
are_you_balanced = False
break
if are_you_balanced and not stack:
print("yes")
else:
print("no")

'''import sys
stack = []
roundbalance = 0
anglebalance = 0
while True:
charrr = sys.stdin.readline().strip()
for ch in charrr:
stack.append(ch)
if charrr == "":
break
while stack:
if stack[-1] == "(":
roundbalance += 1
stack.pop()
elif stack[-1] == ")":
roundbalance -= 1
stack.pop()
elif stack[-1] == "[":
anglebalance += 1
stack.pop()
elif stack[-1] == "]":
anglebalance -= 1
stack.pop()
else:
stack.pop()
if len(stack) == 0:
break
if roundbalance == 0 and anglebalance == 0:
print("yes")
else:
print("no")'''