From 1240a74519ced693e1ee46b98959ed4401a62eac Mon Sep 17 00:00:00 2001 From: pu2rile <3o920@naver.com> Date: Tue, 24 Sep 2024 18:50:52 +0900 Subject: [PATCH 1/3] 24-09-24 --- .DS_Store | Bin 6148 -> 6148 bytes pu2rile/README.md | 4 +++- ...30\354\246\210\355\224\274\354\236\220.py" | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 "pu2rile/\353\254\270\354\236\220\354\227\264/\354\275\260\355\212\270\353\241\234\354\271\230\354\246\210\355\224\274\354\236\220.py" diff --git a/.DS_Store b/.DS_Store index 9dca0ade3d9a93e3c37662bf885ee57ccd53773c..0e71c7547fbdd6e1261cfcf80b2a77bab29f86ca 100644 GIT binary patch delta 173 zcmZoMXfc@J&&azmU^g=(?_?ep`^o$)vXi&4G_V_58t5pPm`t{2bpVM8B?*5&{Jo$i^fvfK>C81sCPzY+`S3Yygu`2e+|+y#cca2>lN^VHTPI diff --git a/pu2rile/README.md b/pu2rile/README.md index 547ac3b..9e8c156 100644 --- a/pu2rile/README.md +++ b/pu2rile/README.md @@ -16,4 +16,6 @@ | 12차시 | 2024.07.23 | 동적 프로그래밍 | [1학년](https://www.acmicpc.net/problem/5557) | [#40](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/40) | 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) \ No newline at end of file +| 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) +| 17차시 | 2024.09.24 | 문자열 | [콰트로치즈피자](https://www.acmicpc.net/problem/27964) | [#54](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/54) \ No newline at end of file diff --git "a/pu2rile/\353\254\270\354\236\220\354\227\264/\354\275\260\355\212\270\353\241\234\354\271\230\354\246\210\355\224\274\354\236\220.py" "b/pu2rile/\353\254\270\354\236\220\354\227\264/\354\275\260\355\212\270\353\241\234\354\271\230\354\246\210\355\224\274\354\236\220.py" new file mode 100644 index 0000000..65fac95 --- /dev/null +++ "b/pu2rile/\353\254\270\354\236\220\354\227\264/\354\275\260\355\212\270\353\241\234\354\271\230\354\246\210\355\224\274\354\236\220.py" @@ -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") \ No newline at end of file From 86f780d9f76ce49972303fd4010b65cea962e663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=84=20KimDohyun?= <163822282+pu2rile@users.noreply.github.com> Date: Tue, 24 Sep 2024 18:57:52 +0900 Subject: [PATCH 2/3] Update README.md --- pu2rile/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/pu2rile/README.md b/pu2rile/README.md index 9e8c156..6fa541b 100644 --- a/pu2rile/README.md +++ b/pu2rile/README.md @@ -18,4 +18,3 @@ | 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) -| 17차시 | 2024.09.24 | 문자열 | [콰트로치즈피자](https://www.acmicpc.net/problem/27964) | [#54](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/54) \ No newline at end of file From 3754601588e55249f394e19966a4735f613cdb2b Mon Sep 17 00:00:00 2001 From: pu2rile <3o920@naver.com> Date: Tue, 24 Sep 2024 18:59:09 +0900 Subject: [PATCH 3/3] Update README.md --- pu2rile/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pu2rile/README.md b/pu2rile/README.md index 6fa541b..9307979 100644 --- a/pu2rile/README.md +++ b/pu2rile/README.md @@ -18,3 +18,4 @@ | 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) +| 17차시 | 2024.09.24 | 문자열 | [콰트로치즈피자](https://www.acmicpc.net/problem/27964) | [#54](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/54)