분류 전체보기590 [C/C++] 프로젝트 오일러 #95 Amicable Chains(수학) 프로젝트 오일러 #95: Amicable Chains (우애 체인)이 문제는 숫자들 사이의 관계를 탐구하는 것으로, 특정 수의 약수의 합을 계산하여 순환하는 우애 체인(amicable chain)을 찾는 것입니다. 다음과 같은 과정을 따릅니다:1. 정의• 어떤 수 \(n\)의 약수의 합을 \(s(n)\)이라고 정의합니다. 여기서 \(s(n)\)은 \(n\) 자신을 제외한 모든 양의 약수의 합입니다.예를 들자면 \( s(12) = 1 + 2 + 3 + 4 + 6 = 16 \)으로 \( s(12) \) 값이 16이 됩니다.• 두 수 \(a\)와 \(b\)가 우애수(amicable numbers)라면 \( s(a) = b \)이고 \( s(b) = a \)이며 \( a \neq b \)입니다.예를 들.. 2024. 11. 17. [C/C++] 프로젝트 오일러 #94 Almost Equilateral Triangles(수학) Project Euler #94: Almost Equilateral Triangles 문제는 “거의 정삼각형” 성질을 가진 삼각형 중에서 주어진 조건을 만족하는 삼각형의 합을 구하는 문제입니다. 정삼각형은 세 변의 길이가 모두 같은 삼각형입니다. 그러나 이 문제에서는 거의 정삼각형(Almost Equilateral Triangles)을 다룹니다. 거의 정삼각형은 다음 조건을 만족하는 삼각형입니다:1. 두 변의 길이가 같고, 나머지 한 변의 길이가 이와 1 차이가 난다. 예: \(a, a, a+1\) 또는 \(a, a, a-1\) 형태2. 삼각형의 세 변이 정수이고, 넓이도 정수여야 한다.삼각형의 넓이 계산 (헤론의 공식)삼각형의 넓이를 구할 때는 헤론의 공식을 사용합니다.세 변이 \(a, b, .. 2024. 11. 16. 4. 파이썬을 이용한 데이터 과학 소개(part 1) 1. 데이터 과학 데이터 과학은 다양한 데이터로부터 유용한 지식과 인사이트를 도출하기 위해 데이터 처리 과정, 과학적 방법론, 알고리즘, 시스템 등을 결합하는 분야입니다. 이 과정에서는 정형, 비정형, 반정형 데이터 모두가 사용됩니다.• 정형 데이터는 표나 데이터베이스처럼 일정한 형식을 갖춘 데이터로, 예를 들어 엑셀 파일이나 관계형 데이터베이스의 자료가 포함됩니다.• 비정형 데이터는 특정한 형식 없이 인간 언어처럼 자연스럽게 표현된 데이터로, 웹 페이지나 뉴스 기사처럼 구문 분석이 필요한 데이터가 해당됩니다.• 반정형 데이터는 JSON 파일과 같이 문자열 기반으로 부분적으로 형식화된 데이터를 의미하며, 구조와 비구조적 요소가 혼재된 형태를 띱니다. 데이터 과학자는 이러한 다양한 유형의 데이터를 적절히 .. 2024. 11. 15. Elegant woman with silver hair sitting gracefully on a vintage sofa Positive Prompt:“Elegant woman with silver hair sitting gracefully on a vintage sofa, wearing a flowing satin dress with delicate patterns. She holds a fan in one hand and looks contemplatively downwards. Soft, natural light filters through the window, casting gentle shadows. The setting has a serene and refined atmosphere, with muted tones and an artful background, giving a classic, dreamlike q.. 2024. 11. 14. [txt2img] Cyberpunk scene of a woman kneeling in the rain Positive Prompt:“Cyberpunk scene of a woman kneeling in the rain, holding a sword with both hands, head slightly bowed. She wears a translucent raincoat with futuristic patterns, and neon city lights reflect off the wet ground and her outfit. The atmosphere is intense, with vibrant colors, rain streaks, and blurred lights in the background, giving a moody, futuristic vibe.”Negative Prompt:“Blurr.. 2024. 11. 14. [txt2img] Beautiful woman with long, flowing blonde hair Positive Prompt:“Beautiful woman with long, flowing blonde hair, standing on a beach with the ocean in the background. She has captivating green eyes and a confident gaze, wearing a fantasy-inspired, ornate outfit with intricate jewelry and accessories, including a pendant and decorative belt. The setting has a vibrant, sunlit atmosphere, with soft brushstrokes and detailed textures giving a pai.. 2024. 11. 14. 이전 1 ··· 4 5 6 7 8 9 10 ··· 99 다음 728x90