분류 전체보기
-
[스파르타코딩클럽] Javascript 문법종합반 1~ 2주차프로그래밍 언어/JavaScript 2023. 6. 12. 15:43
1주차 1 주차는 기본적인 내용과 반복문 및 조건문에 대한 내용으로 강의자료를 참고하면서 복기시키면 될 법한 내용이 주를 이루고 있다. - 삼항연산자 let x = 10; let result = (x > 5) ? "크다" : "작다"; console.log(result); // "크다" - 타입연산자 console.log(typeof 123); // "number" console.log(typeof "123"); // "string" console.log(typeof true); // "boolean" console.log(typeof undefined); // "undefined" console.log(typeof null); // "object" console.log(typeof {}); // "ob..
-
띵동코딩 CSS프로그래밍/CSS 2023. 6. 1. 15:53
1. CSS활용 - 구역에 대한 이해 Gnb(맨 위에 있는 것) Main Cta(둥둥 떠다니는 박스 구매표시뜨는 애들) - 줄바꿈 - justify-content 얼마나 떨어뜨릴지 결정하는 것 - 수평선 만들기 (2줄로 구성되어있다) - position : fixed; Cta 할때 주로 쓰임(고정) - calc 연산 할 때 주로 쓰이는데 Cta 크기 맞출 때 사용되었다. - 그림자 넣기 - curser: pointer 손모양 나오게 하기 - margin 위 오른쪽 아래 왼쪽 2. 부트스트랩 아이콘 쓸려면 부트스트랩 링크 무조건 필요 가져다 쓰기 꼭 하기 3. 깃허브 배포 방법 레포지토리 먼저 만들고 QUick setup 부분에서 uploading 눌러서 file 올리고 setting에서 page 가서 b..
-
알고리즘 & 자료구조 스터디(10조) 8일차알고리즘 2023. 5. 30. 19:28
Q. 1003 피보나치 수 t = int(input()) for _ in range(t): zeroCount = [1, 0, 1] oneCount = [0, 1, 1] n = int(input()) for j in range(3, n + 1): oneCount.append(oneCount[j-1] + oneCount[j-2]) zeroCount.append(zeroCount[j-1] + zeroCount[j-2]) print(zeroCount[n], oneCount[n]) Q. 2609 공약수와 최소공배수 import math n,m = map(int, input().split()) print(math.gcd(n, m)) print(math.lcm(n, m)) Q. 9461 파도반 수 import sys..
-
알고리즘 & 자료구조 스터디(10조) 7일차알고리즘 2023. 5. 29. 20:36
Q. 2231 분해 num = int(input()) result = 0 for i in range(num): list_1 = list(map(int, str(i))) # [1, 9, 8] sum_num = sum(list_1) # 18 if num == i + sum_num: # i = 198 # num = 216 이랑 198 + 18 이 같으면 result 에 저장 하고 반복문 종료 result = i break print(result) Q. 2798 블랙 n,m = map(int,input().split()) data = list(map(int,input().split())) data.sort() munyeol = [] for i in data: for j in data: if i == j: con..