diff --git a/mini-zun/README.md b/mini-zun/README.md index 3c24aca..d716520 100644 --- a/mini-zun/README.md +++ b/mini-zun/README.md @@ -10,4 +10,5 @@ | 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/389480 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/38 | -| 9차시 | 2025.08.18 | https://school.programmers.co.kr/learn/courses/30/lessons/142085 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/40 | \ No newline at end of file +| 9차시 | 2025.08.18 | https://school.programmers.co.kr/learn/courses/30/lessons/142085 | https://github.com/AlgoLeadMe/AlgoLeadMe-16/pull/40 | +| 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