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