Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- KPT회고
- 커스텀 헤더
- Python
- 구글 OAuth login
- jwt
- 단기개발자코스
- spring batch 5.0
- DesignPattern
- 디자인패턴
- 개발자 취업
- 인프콘 2024
- 파이썬
- 코딩테스트 준비
- 빈 조회 2개 이상
- JavaScript
- infcon 2024
- 빈 충돌
- 1주일회고
- 프로그래머스 이중우선순위큐
- 99클럽
- 취업리부트코스
- 개발자부트캠프추천
- TiL
- jwttoken
- 항해99
- 전략패턴 #StrategyPattern #디자인패턴
- 디자인 패턴
- Spring multimodule
- @FeignClient
- 프로그래머스
Archives
- Today
- Total
목록알고리즘 with python (73)
m1ndy5's coding blog
[수학] 백준 1978 소수 찾기 with python
https://www.acmicpc.net/problem/1978 import math def is_prime_num(num): if num == 1: return 0 for i in range(2, int(math.sqrt(num))+1): if num % i == 0: return 0 return 1 n = int(input()) lst = list(map(int, input().split())) cnt = 0 for num in lst: if is_prime_num(num) == 1 : cnt += 1 print(cnt)각 수가 소수인지 아닌지 판별하는 문제였다. 소수는 1과 자기자신만을 약수로 갖는 수, 곧 다른 숫자로 나누어 떨어지면 안된다는 뜻이다. 36의 약수를 예시로 들어보자 1 2 3 4..
알고리즘 with python/수학
2023. 2. 27. 20:17
[수학] 백준 1929번 소수 구하기 with python
https://www.acmicpc.net/problem/1929 1번째 풀었던 방법 import math start, end = map(int, input().split()) num = [] for i in range(start, end+1): if i != 1: num.append(i) for i in range(2, int(math.sqrt(end))+1): j = 2 while i*j
알고리즘 with python/수학
2023. 2. 27. 00:02