전체 글11 [혼공학습단 7기] 혼공머신 2주차 기본미션 : 3-1 2번 연습문제 https://colab.research.google.com/drive/1sSnIVQNyUietx1kJSdxZ076pRhfIxibk?usp=sharing HGM 3-1 Colaboratory notebook colab.research.google.com 2022. 1. 24. [혼공학습단 7기] 혼공머신 1주차 1-3 https://colab.research.google.com/drive/1RuXKNL6K43dN3S6GSUdNFNwFjFIi_Dj_?usp=sharing Google Colaboratory Notebook Run, share, and edit Python notebooks colab.research.google.com 2-1 https://colab.research.google.com/drive/1xS5PPBgAmJUj7Rcor4fVCqSI2ipSuNE2?usp=sharing Google Colaboratory Notebook Run, share, and edit Python notebooks colab.research.google.com 2-2 https://colab.research.googl.. 2022. 1. 17. [Baekjoon] 1065 a = 0 count = 0 a = int(input()) if (a < 100): print (a) elif (99 < a < 1000): for i in range(99, a+1): if ((i // 100) + (i % 10) == 2 * (i % 100 // 10)): count += 1 print (count+99) elif (a == 1000) : print (144) else : print ("범위를 넘어갔자나 인마") 2022. 1. 1. [Baekjoon] 4673 ''' def checkself(a): for i in range(1, a+1): self = i + i//1000 + (i//100)%10 + (i//10)%10 + i%10 if self == a: return else: continue print (a) for l in range(1, 10001): checkself(l) ''' A = list(range(1,10001)) def checkself2(j): self = j + j//1000 + (j//100)%10 + (j//10)%10 + j%10 return self for b in range(1, 10001): if checkself2(b) in A: A.remove(checkself2(b)) for i in A: print (i) 2021. 12. 29. 이전 1 2 3 다음