728x90 ๋ฐ์ํ ์๊ณ ๋ฆฌ์ฆ ๐ก/ํ๋ก๊ทธ๋๋จธ์ค25 ์ด๋ฆ์ด ์๋ ๋๋ฌผ์ ์์ด๋ / is null is null -- ์ฝ๋๋ฅผ ์ ๋ ฅํ์ธ์ SELECT ANIMAL_ID from animal_ins where name is null order by ANIMAL_ID asc 2023. 11. 3. ์ด๋ฆ์ด ์๋ ๋๋ฌผ์ ์์ด๋ IS NOT NULL -- ์ฝ๋๋ฅผ ์ ๋ ฅํ์ธ์ SELECT ANIMAL_ID from ANIMAL_INS where NAME IS NOT NULL order by ANIMAL_ID asc 2023. 11. 3. 2023 KAKAO BLIND RECRUITMENT 1.๊ฐ์ธ ์ ๋ณด ์์ง ์ ํจ๊ธฐ๊ฐ https://school.programmers.co.kr/learn/courses/30/lessons/150370 ํ๋ก๊ทธ๋๋จธ์ค ์ฝ๋ ์ค์ฌ์ ๊ฐ๋ฐ์ ์ฑ์ฉ. ์คํ ๊ธฐ๋ฐ์ ํฌ์ง์ ๋งค์นญ. ํ๋ก๊ทธ๋๋จธ์ค์ ๊ฐ๋ฐ์ ๋ง์ถคํ ํ๋กํ์ ๋ฑ๋กํ๊ณ , ๋์ ๊ธฐ์ ๊ถํฉ์ด ์ ๋ง๋ ๊ธฐ์ ๋ค์ ๋งค์นญ ๋ฐ์ผ์ธ์. programmers.co.kr def dateToDay(date): year, month, day = map(int, date.split(".")) return (year * 12 * 28) + (month * 28) + day def solution(today, terms, privacies): answer = [] # today today = dateToDay(today) # terms ter.. 2023. 9. 7. [ํ๋ก๊ทธ๋๋จธ์ค_์์ ํ์] ์์ ์ฐพ๊ธฐ(ํ์ด์ฌ) ๋ฌธ์ ํ๊ธฐ ์ ์์์ผ ๋ ์ง์ - ์์ด(permutations) ์๋ก ๋ค๋ฅธ n๊ฐ์์ r๊ฐ๋ฅผ ์ ํํ ๋ ์์๋ฅผ ๊ณ ๋ คํ์ฌ ์ค๋ณต์์ด ๋ฝ์ ๊ฒฝ์ฐ์ ์. ํ์ด์ฌ์๋ ์์ด(permutations)์ ์กฐํฉ ์ ์์ฝ๊ฒ ๋ง๋ค์ด์ฃผ๋ ๋ชจ๋ iteratools๊ฐ ์๋ค. ๊ทธ๋์ from iteratools import permutations ์ ์ฝ๋๋ฅผ ์ด์ฉํ์ฌ ๋ชจ๋์ ๊ฐ์ ธ์ค๋ฉด ๋๋ค. ์์ ์ฝ๋ from iteratools import permutations # ์์ด๊ณผ ์กฐํฉ์ ์์ฝ๊ฒ ๋ง๋ค์ด์ฃผ๋ ๋ชจ๋ itertools ์ฌ์ฉ arr = ['a','b','c','d'] # ์์๋ก ๋ฐฐ์ด ์ค์ ํ์ฌ arr ๋ณ์ ์ ์ฅ print(permutations(arr,2)) # ๋ฐ๋ณต๊ฐ๋ฅํ ๊ฐ์ฒด(๋ฆฌ์คํธ,ํํ,๋ฌธ์์ด)์์์ r๊ฐ๋ฅผ ์ ํํ๋ค. ์ฌ๊ธฐ์ r์ .. 2022. 12. 21. ์ด์ 1 ยทยทยท 3 4 5 6 7 ๋ค์ 728x90 ๋ฐ์ํ