Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mini-zun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
| 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 |
24 changes: 24 additions & 0 deletions mini-zun/구현/10-mini-zun.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include <string>
#include <vector>

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;
}