전체 글138 [Baekjoon] - 함수 [15596] def sumN(a): return sum(a) ----------------------------- def sumN(a): total = 0 for i in a: total += i return total [4673] import sys natural_n = set(range(1,10001)) #natural_n 변수에 set자료형(중복 방지)으로 1~10000까지 저장 generate_n = set() #generate_n 생성자 저장할 set 선언 for i in range(1,10001): #i = 343 for j in str(i): #j = '3','4','3' i += int(j) # i = 343 + 3 + 4 + 3 = 353, 353은 생성자 있는 수 generate_n... 2021. 6. 1. [Baekjoon] - 1차원 배열 [10818] import sys input = sys.stdin.readline n = int(input()) num_list = list(map(int, input().split())) n_max = num_list[0] n_min = num_list[0] for i in num_list: if i > n_max: n_max = i if i < n_min: n_min = i print(n_min, n_max) --------------------------- import sys input = sys.stdin.readline n = int(input()) num_list = list(map(int, input().split())) print(min(num_list), max(num_list)) [25.. 2021. 6. 1. SearchConsole error prevention 2021. 6. 1. SearchConsole error prevention 2021. 6. 1. [Swift] Date Picker 스토리보드로 Date Picker를 만들어보자 프로젝트는 이전 글과 똑같이 만들어주면된다. 2021.05.28 - [Dev/Swift] - [Swift] Image View [Swift] Image View 내가 원하는 이미지를 화면에 출력해보자 스토리보드에 액션함수도 활용하여 인터렉션해보자!!!!!!!!!!! 좀만 하면 할 수 있는 쉬운 난이도다!!!! 누구나 할 수 있다!!! 이미지 뷰는 이름에서 알 수 limjs-dev.tistory.com 라이브러리에서 스토리보드로 우선 추가해주자 데이트 피커를 추가해준 모습이고 Inspector의 Locale: default 는 영문으로 시간이 표시된다. Inspector의 설정을 바꿔주자. 난 한국에 사니깐 지역은 한국, 선택은 휠로 선택, 모드는 defaul.. 2021. 5. 31. Baekjoon - while [10952] b = True while b != False: a, b = map(int, input().split()) if a == 0 and b == 0: break else: print(a+b) [10951] while True: try: a, b = map(int, input().split()) print(a+b) except: break [1110] n = int(input()) check_n = n cnt = 0 while True: temp = (n//10)+(n%10) new_n = ((n%10)*10)+(temp%10) cnt += 1 if check_n == new_n: break n = new_n print(cnt) 2021. 5. 30. 이전 1 ··· 17 18 19 20 21 22 23 다음