전체 글 474

[python] 백준1145 적어도 대부분의 배수

www.acmicpc.net/problem/1145 1145번: 적어도 대부분의 배수 첫째 줄에 다섯 개의 자연수가 주어진다. 100보다 작거나 같은 자연수이고, 서로 다른 수이다. www.acmicpc.net numbers=list(map(int,input().split())) check=[0]*(len(numbers)+1) numbers.sort() tmp=1 go = True while(tmp>0): for i in numbers: if tmp%i==0: check[numbers.index(i)]=1 if check.count(1)>=3: print(tmp) go=False break if go==False: break tmp+=1 check=[0]*(len(numbers)+1)

[python] 백준 1032 명령프롬프트

www.acmicpc.net/problem/1032 1032번: 명령 프롬프트 첫째 줄에 파일 이름의 개수 N이 주어진다. 둘째 줄부터 N개의 줄에는 파일 이름이 주어진다. N은 50보다 작거나 같은 자연수이고 파일 이름의 길이는 모두 같고 길이는 최대 50이다. 파일이름은 www.acmicpc.net N=int(input()) oper = [] for i in range(N): oper.append(input()) index=[] length = len(oper[0]) check=[1]*length for i in range(length): for j in range(N): if str(oper[0])[i]!=str(oper[j])[i]: check[i]=0 if 0 in check : index.ap..

0306 어휘

affiliate 계열사 functional 기능위주의, 실용적인 bulky 부피가 큰 lengthy 긴, 장시간의 be obliged to 의무적으로 ~하게 되다 (타동사) distinguishing 구별되는 spokesperson 대표인 inclement 험한, 혹독한 as such 이와 같은 이유로 motorist 운전자 reinstate 복귀시키다 lucrative 수익성이 좋은 prototype 원형, 견본, 원조 on the go 끊임없이 활동하여, 계속 일하여 safe regulations 안전규정 (복합명사) alumni 졸업생들, 동문 The bridge is still functional - 그 다리는 여전히 가능하다 be anxious to 부정사 : ~하고 싶은 생각이 간절하다 be..

영어 공부 2021.03.06

[python] 프로그래머스 2019kakao 오픈채팅방

programmers.co.kr/learn/courses/30/lessons/42888 코딩테스트 연습 - 오픈채팅방 오픈채팅방 카카오톡 오픈채팅방에서는 친구가 아닌 사람들과 대화를 할 수 있는데, 본래 닉네임이 아닌 가상의 닉네임을 사용하여 채팅방에 들어갈 수 있다. 신입사원인 김크루는 카카오톡 오 programmers.co.kr def solution(record): result = [] id = {} for i in record: if i.split()[0]=="Enter" or i.split()[0]=="Change": id[i.split()[1]]=i.split()[2] for i in record: if i.split()[0]=="Enter": result.append(id.get(i.spli..

[python] 프로그래머스 2019kakao 실패율

programmers.co.kr/learn/courses/30/lessons/42889 코딩테스트 연습 - 실패율 실패율 슈퍼 게임 개발자 오렐리는 큰 고민에 빠졌다. 그녀가 만든 프랜즈 오천성이 대성공을 거뒀지만, 요즘 신규 사용자의 수가 급감한 것이다. 원인은 신규 사용자와 기존 사용자 사이에 스 programmers.co.kr def solution(N, stages): result = [] stages=sorted(stages) # 정렬 size = len(stages) # stages의 크기=> size tmp=0 answer=[] # 반환 for i in range(N): tmp=stages.count(i+1) if size==0 or tmp==0: result.append((i+1,0)) e..

0221 토익 어휘, 비교급 강조

regardless of ~에 상관없이 on behalf of ~을 대신하여 aside from = apart from 전) ~외에는, ~을 제외하고 intact 온전한, 전혀 다치지 않은 exempt 면제되는, 면제하다 transparency opacue:불투명한 투명도, 슬라이드 audit 검사, 회계를 감사하다 cellular 세포의, 성기게 짠 advisable 권할만한, 바람직한 phenomenal / phenomenally 경이적인 / 경이적으로, 극도로, 아주 abundantly 아주분명한, 풍부하게 commence 시작되다 adjacent [얻제이슨ㅌ] 인접한, 가까운 pertaining to 에 관계된 intensify 심해지다, 강화하다 congestion / traffic conges..

영어 공부 2021.02.21

0218 토익 단어, 어휘

Then let’s review the sales information from last quarter to get us a better picture of the type of customers we should target. - 그럼 지난 분기 판매 정보를 검토해서 우리가 목표로 삼아야 할 고객 유형상을 더 잘 얻어봅시다. A crate is being filled with some products. - 상자 하나가 제품들로 채워지고 있다 The boxes have been stacked up on top of each other. - 박스들이 차곡차곡 쌓여 있다

영어 공부 2021.02.18

신경전이학습을 통해 내 사진 변형하기 (Neural Style Transfer)

구글colab을 이용했다. from google.colab import drive drive.mount('/content/drive') 구글 colab은 구글드라이브와 연동이 가능하다. 연동하기 위해서는 google.colab의 drive를 임포트 해줘야한다. drive.mount함수를 이용해 내 계정의 구글드라이브를 마운트 시켜준다 # 8.42 원본 텍스쳐 이미지 불러오기 import tensorflow as tf import matplotlib.pyplot as plt import cv2 # 스타일 이미지 style_path=r'/content/drive/MyDrive/pp.jpg' # 스타일 이미지 경로를 이용해 읽은 이미지를 style_image에 저장 style_image = plt.imread..

0205토익 - 단어,어휘,지시대명사

resign 사직하다, 물러나다 expectant 기대하는, 출산을 앞둔 bear in mind ~을 명심하다 turnout 참가자의 수, 투표율 A recruitment drive 신입사원 모집 look for a replacement : 대체할 사람(물건)을 찾다 I’m afraid I’m not familiar with this neighborhood. : 죄송하지만 이 근처 지리에 익숙하지 않아요. If you’d like, I can show you how to charge it and change the attachments. : 원하시면, 이걸 충전하고 부품을 교체하는 방법을 알려 드릴게요. Any queries? : 질문 있으신가요? it that : 단수 지시대명사 those them :..

영어 공부 2021.02.05