-
알고리즘 & 자료구조 스터디(10조) 3일차알고리즘 2023. 5. 24. 21:40
Q.10828 스택
Q.10773 제로
Q.18258 큐
강의에서 관련된 내용이 나와서 수월하게 문제를 풀 수 있었다. 아쉽게도 문제 푼 코드를 삭제 해버려서 다음에 다시 한번 풀고 결과를 남겨봐야지
Q.1929 소수구하기
소수 구하는 문제 관련되서 힘이든다... 이해력이 좀 딸리는지 구현이 어려워서 다음에 답지를 보고 외워야겠다.
import sys a, b = map(int, sys.stdin.readline().split()) def asdf(n): for i in range(2, n): if n % i == 0: return False return True for i in range(a, b): if asdf(i) == True: print(i)
자료구조&알고리즘 1강 (완료)
'알고리즘' 카테고리의 다른 글
알고리즘 & 자료구조 스터디(10조) 6일차 (0) 2023.05.27 알고리즘 & 자료구조 스터디(10조) 5일차 (0) 2023.05.26 알고리즘 & 자료구조 스터디(10조) 4일차 (1) 2023.05.25 알고리즘 & 자료구조 스터디(10조) 2일차 (0) 2023.05.23 알고리즘 & 자료구조 스터디(10조) 1일차 (0) 2023.05.23