Python(108)
-
[coding test] Baekjoon_level 6_함수
Ver. Jupyter Notebook (Anaconda3) ▶ coding test_Baekjoon_level 6_함수 - 백준: baekjoon - 코딩 및 결과: github JeongJaeyoung0/coding_test 코딩테스트. Contribute to JeongJaeyoung0/coding_test development by creating an account on GitHub. github.com 2021.05.29 # coding test_Baekjoon_level 6_함수 # 15596 (정수 N개의 합) def solve(a): return sum(a) # 4673 (셀프 넘버)-1 a=set() b=set(range(10001)) for n in range(10001): i=0 f..
2021.05.29 -
[coding test] Baekjoon_level 5_1차원 배열
Ver. Jupyter Notebook (Anaconda3) ▶ coding test_Baekjoon_level 5_1차원 배열 - 백준: baekjoon - 코딩 및 결과: github JeongJaeyoung0/coding_test 코딩테스트. Contribute to JeongJaeyoung0/coding_test development by creating an account on GitHub. github.com >>> a, *b, c= [1,2,3,4,5] # *를 붙이면 남는 리스트들 전부 >>> print(a) Out: 1 >>> print(b) Out: [2,3,4] >>> print(b) Out: 5 2021.05.28 # coding test_Baekjoon_level 5_1차원 배열 ..
2021.05.28 -
[coding test] Baekjoon_level 4_while문
Ver. Jupyter Notebook (Anaconda3) ▶ coding test_Baekjoon_level 4_while 문 - 백준: baekjoon - 코딩 및 결과: github JeongJaeyoung0/coding_test 코딩테스트. Contribute to JeongJaeyoung0/coding_test development by creating an account on GitHub. github.com - 키 := 표현식 (바다코끼리 연산자: 표현식 결과를 키에 저장) >>> a=5; b=0 >>> while(a:= a-1) : b+=1 >>> print(b) Out: 4 2021.05.27 # coding test_Baekjoon_level 4_while문 # 10952 (A+B -..
2021.05.27 -
[coding test] Baekjoon_level 3_for문
Ver. Jupyter Notebook (Anaconda3) ▶ coding test_Baekjoon_level 3_for 문 - 백준: baekjoon - 코딩 및 결과: github JeongJaeyoung0/coding_test 코딩테스트. Contribute to JeongJaeyoung0/coding_test development by creating an account on GitHub. github.com - a*-~b · ~ 는 b 값을 *(-1)+(1)을 의미 · - 는 뒤의 값을 음수로 바꾸는 의미 - n*-~n//10 : 1 ~ n 까지의 합을 구할 때 사용 - eval() : str의 수를 넣으면 그대로 실행하여 결과 출력 >>> eval('1+2') Out: 3 - exec( ' ..
2021.05.26 -
[coding test] Baekjoon_level 2_if문
Ver. Jupyter Notebook (Anaconda3) ▶ coding test_Baekjoon_level 2_if 문 - 백준: baekjoon - 코딩 및 결과: github JeongJaeyoung0/coding_test 코딩테스트. Contribute to JeongJaeyoung0/coding_test development by creating an account on GitHub. github.com >>> print(*['A','B']) : 프린트 할 때, 리스트 앞에 * 입력시 리스트가 풀려서 출력됨 Out: A B >>> print(+[3>2]) : 프린트 할 때, + 입력시 불리언 값을 0, 1로 출력됨 (False: 0, True: 1) Out: 1 2021.05.26 # cod..
2021.05.25 -
[coding test] Baekjoon_level 1_입출력과 사칙연산
Ver. Jupyter Notebook (Anaconda3) ▶ coding test_Baekjoon_level 1_입출력과 사칙연산 - 백준: baekjoon - 코딩 및 결과: github JeongJaeyoung0/coding_test 코딩테스트. Contribute to JeongJaeyoung0/coding_test development by creating an account on GitHub. github.com >>> eval() : str의 수를 넣으면 그대로 실행하여 결과 출력 >>> ''.join() : join하면서 ''안의 값을 문자 사이에 입력 2021.05.25 # coding test_Baekjoon_level 1_입출력과 사칙연산 # 2557 (프린트) print('Hell..
2021.05.25