Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

19-wkdghdwns199 #76

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
19 changes: 19 additions & 0 deletions wkdghdwns199/ACM-25192.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import sys
input = sys.stdin.readline
N = int(input())
emoji_using_users = set()
time_for_emoji_use = False
emoji_use_count = 0
for _ in range(N):
chat_string = input().rstrip()
if chat_string == 'ENTER' :
if time_for_emoji_use :
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이건 μ–΄λ–€ 것을 μ˜λ―Έν•˜λŠ” κ±΄κ°€μš”?

Copy link
Collaborator Author

@wkdghdwns199 wkdghdwns199 Apr 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 μ±„νŒ… 기둝을 ν•œ 쀄 μ”© λ°›μ•„μ„œ λ§Œμ•½ ENTER 이면 μ΄μ œλΆ€ν„° 밑에 μžˆλŠ” μ±„νŒ… 기둝은 μ „λΆ€ 곰곰이 이λͺ¨ν‹°μ½˜μ„ μ“°λŠ” μ‚¬λžŒλ“€μ΄λ‹€! 라고 μ²΄ν¬ν•˜λŠ” κ²λ‹ˆλ‹€μš” πŸ₯Ή

emoji_use_count += len(emoji_using_users)
else :
time_for_emoji_use = True
emoji_using_users = set()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

μƒˆλ‘œ μ„ μ–Έν•˜λŠ”κ²ƒλ„ μ’‹μ§€λ§Œ emoji_using_users.clear() 방법도 μžˆμ„ 것 κ°™μ•„μš”!

else :
emoji_using_users.add(chat_string)

emoji_use_count+=len(emoji_using_users)
print(emoji_use_count)
1 change: 1 addition & 0 deletions wkdghdwns199/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
| 14μ°¨μ‹œ | 2024.03.13 | 집합과 맡 | <a href="https://www.acmicpc.net/problem/20920">μ˜λ‹¨μ–΄ μ•”κΈ°λŠ” κ΄΄λ‘œμ›Œ</a> | <a href="">2024.03.13</a> |
| 15μ°¨μ‹œ | 2024.03.20 | μš°μ„ μˆœμœ„ 큐 | <a href="https://www.acmicpc.net/problem/11286">μ ˆλŒ“κ°’ νž™</a> | <a href="">2024.03.20</a> |
| 16μ°¨μ‹œ | 2024.03.23 | μ‘°ν•©λ‘  | <a href="https://www.acmicpc.net/problem/11050">이항 κ³„μˆ˜ 1 </a> | <a href="">2024.03.23</a> |
| 19μ°¨μ‹œ | 2024.04.07 | μ‘°ν•©λ‘  | <a href="https://www.acmicpc.net/problem/25192">인사성 밝은 곰곰이</a> | <a href="">2024.04.07</a> |

Loading