Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
Tags
- AndroidStudio
- cos pro
- 알고리즘
- 코테
- Python
- cos
- codingtest
- docker
- android
- BAEKJOON
- 안드로이드스튜디오
- Algorithm
- 코드품앗이
- DART
- vuejs
- Flutter
- 개발
- 안드로이드
- 동적계획법
- issue
- 백준
- django
- 동적계획법과최단거리역추적
- DFS
- 분할정복
- C++
- DFS와BFS
- cos pro 1급
- 코딩테스트
- 파이썬
Archives
- Today
- Total
목록cos pro 1급 소수의 세제곱이 몇개가 있나요 python (1)
Development Artist

문제 유형 코딩 난이도 normal Note 1. 3차 6번의 소수 리스트를 뽑는 함수를 사용. (그래서 중요하다고...하였다.) 2. 제곱도는 for문과 세제곱도는 for문. Code # -*- coding: utf-8 -*- # UTF-8 encoding when using korean def get_prime(n): # very very special primes = [2] for i in range (3, n + 1, 2) : is_prime = True for j in range(2, i) : if i % j == 0 : is_prime = False break if is_prime : primes.append(i) return primes def solution(a, b): answer = 0..
Algorithm/COS
2022. 2. 25. 13:22