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
- 백준
- android
- cos pro 1급
- django
- codingtest
- issue
- DART
- DFS
- 안드로이드스튜디오
- Flutter
- cos
- Algorithm
- cos pro
- DFS와BFS
- 개발
- C++
- vuejs
- 동적계획법과최단거리역추적
- 알고리즘
- 동적계획법
- Python
- 코딩테스트
- 분할정복
- 파이썬
- 코테
- AndroidStudio
- 코드품앗이
- 안드로이드
- docker
- BAEKJOON
Archives
- Today
- Total
목록cos 1급 4차 소수의 세제곱이 몇개가 있나요 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