From c1b8e9682ced7a15f18a14d04d023dee1d9da46d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B5=AC=EB=AF=BC=EC=A4=80?= Date: Mon, 24 Aug 2026 18:21:21 +0900 Subject: [PATCH] =?UTF-8?q?20260824=20=EC=9C=A0=EC=82=AC=20=EC=B9=B8?= =?UTF-8?q?=ED=86=A0=EC=96=B4=20=EB=B9=84=ED=8A=B8=EC=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-zun/README.md | 3 ++- .../\352\265\254\355\230\204/10-mini-zun.cpp" | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 "mini-zun/\352\265\254\355\230\204/10-mini-zun.cpp" diff --git a/mini-zun/README.md b/mini-zun/README.md index 39f3a61..bc69c56 100644 --- a/mini-zun/README.md +++ b/mini-zun/README.md @@ -9,4 +9,5 @@ | 5차시 | 2025.06.07 | https://school.programmers.co.kr/learn/courses/30/lessons/42583 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/23 | | 6차시 | 2025.06.16 | https://school.programmers.co.kr/learn/courses/30/lessons/42898 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/28 | | 7차시 | 2025.07.02 | https://school.programmers.co.kr/learn/courses/30/lessons/87390 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/33 | -| 8차시 | 2025.08.10 | https://school.programmers.co.kr/learn/courses/30/lessons/87390 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/33 | \ No newline at end of file +| 8차시 | 2025.08.10 | https://school.programmers.co.kr/learn/courses/30/lessons/87390 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/33 | +| 10차시 | 2025.08.24 | https://school.programmers.co.kr/learn/courses/30/lessons/148652 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/42 | \ No newline at end of file diff --git "a/mini-zun/\352\265\254\355\230\204/10-mini-zun.cpp" "b/mini-zun/\352\265\254\355\230\204/10-mini-zun.cpp" new file mode 100644 index 0000000..2111bc8 --- /dev/null +++ "b/mini-zun/\352\265\254\355\230\204/10-mini-zun.cpp" @@ -0,0 +1,24 @@ +#include +#include + +using namespace std; +bool isZere(long long x){ + while(x > 0) { + if(x%5 == 2){ + return true; + } + x/=5; + } + return false; +} +int solution(int n, long long l, long long r) { + int answer = 0; + for(long long i = l; i <= r; i++){ + long long x = i - 1; + + if(!isZere(x)) { + answer++; + } + } + return answer; +} \ No newline at end of file