Skip to content

Commit

Permalink
Merge pull request #76 from AlgoLeadMe/19-wkdghdwns199
Browse files Browse the repository at this point in the history
19-wkdghdwns199
  • Loading branch information
wkdghdwns199 authored Apr 29, 2024
2 parents 3cc12e9 + d43fc1a commit e530845
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
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 :
emoji_use_count += len(emoji_using_users)
else :
time_for_emoji_use = True
emoji_using_users = set()
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 @@ -20,4 +20,5 @@
| 16์ฐจ์‹œ | 2024.03.23 | ์กฐํ•ฉ๋ก  | <a href="https://www.acmicpc.net/problem/11050">์ดํ•ญ ๊ณ„์ˆ˜ 1 </a> | <a href="">2024.03.23</a> |
| 17์ฐจ์‹œ | 2024.03.27 | DP | <a href="https://www.acmicpc.net/problem/9184">์‹ ๋‚˜๋Š” ํ•จ์ˆ˜ ์‹คํ–‰</a> | <a href="">2024.03.27</a> |
| 18์ฐจ์‹œ | 2024.04.03 | ์ง‘ํ•ฉ๊ณผ ๋งต | <a href="https://www.acmicpc.net/problem/26069">์ ˆ๋Œ“๊ฐ’ ํž™</a> | <a href="">2024.04.03</a> |
| 19์ฐจ์‹œ | 2024.04.07 | ์กฐํ•ฉ๋ก  | <a href="https://www.acmicpc.net/problem/25192">์ธ์‚ฌ์„ฑ ๋ฐ์€ ๊ณฐ๊ณฐ์ด</a> | <a href="">2024.04.07</a> |

0 comments on commit e530845

Please sign in to comment.