Skip to content

Commit

Permalink
Merge pull request #54 from AlgoLeadMe/17-pu2rile
Browse files Browse the repository at this point in the history
17-pu2rile
  • Loading branch information
pu2rile authored Oct 9, 2024
2 parents cc8c5c0 + 4959397 commit b28b2cc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion pu2rile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
| 13์ฐจ์‹œ | 2024.07.26 | ์Šคํƒ | [ํ›„์œ„ ํ‘œ๊ธฐ์‹](https://www.acmicpc.net/problem/1918) | [#43](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/43)
| 14์ฐจ์‹œ | 2024.08.05 | ํŠธ๋ฆฌ | [์ด์ง„ ํƒ์ƒ‰ ํŠธ๋ฆฌ](https://www.acmicpc.net/problem/5639) | [#45](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/45)
| 15์ฐจ์‹œ | 2024.08.15 | ํŠธ๋ฆฌ | [๋‚˜๋ฌด ํƒˆ์ถœ](https://www.acmicpc.net/problem/15900) | [#48](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/48)
| 16์ฐจ์‹œ | 2024.09.15 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [์‹ ์ž… ์‚ฌ์›](https://www.acmicpc.net/problem/15900) | [#51](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/51)
| 16์ฐจ์‹œ | 2024.09.15 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [์‹ ์ž… ์‚ฌ์›](https://www.acmicpc.net/problem/15900) | [#51](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/51)
| 17์ฐจ์‹œ | 2024.09.24 | ๋ฌธ์ž์—ด | [์ฝฐํŠธ๋กœ์น˜์ฆˆํ”ผ์ž](https://www.acmicpc.net/problem/27964) | [#54](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/54)
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
toping = int(input())
toping_lst = input().split()
cheese_set = set()

for cheese in toping_lst:
# ํ† ํ•‘ ์ด๋ฆ„์˜ ๋งˆ์ง€๋ง‰ 6๊ธ€์ž๊ฐ€ Cheese์ธ์ง€ ํ™•์ธ
# ์น˜์ฆˆ ํ† ํ•‘์ด ๋งž๋‹ค๋ฉด
if cheese[-6:] == 'Cheese':
# ์ง‘ํ•ฉ์— ์น˜์ฆˆ ์ด๋ฆ„ ์ถ”๊ฐ€ (์ค‘๋ณต ์ž๋™ ์ œ๊ฑฐ)
cheese_set.add(cheese)

if len(cheese_set) >= 4: # ์„œ๋กœ ๋‹ค๋ฅธ ์น˜์ฆˆ๊ฐ€ 4๊ฐœ ์ด์ƒ์ด๋ฉด
print("yummy")
else:
print("sad")

0 comments on commit b28b2cc

Please sign in to comment.