기술 공간. 딥러닝. 코드 AI.

  • 홈
  • 태그
  • 방명록

기술 53

블랙잭 - 백준2798번

#백준2798번 n,m=map(int,input().split()) lst=[] for i in input().split(): lst.append(int(i)) #입력받은 n의 크기에 상관없이 더 큰 크기의 리스트를 만들수 있음 front=0 mid=1 back=2 lst2=[] while(back

기술 2021.04.05

달팽이는 올라가고 싶다 - 백준2869번

#백준2869번 a,b,v=map(int,input().split()) distance=0 count=0 while(1): count=count+1 distance=distance+a if distance >= v: break else: distance=distance-b print(count) ``` 예제 입력 1 2 1 5 예제 출력 1 4 예제 입력 2 5 1 6 예제 출력 2 2 예제 입력 3 100 99 1000000000 예제 출력 3 999999901 ->여기 3번째 test case에서 시간이 초과되었다 ㅠ 수학적인 방법을 동원해서 연산시간을 줄여야 할것 같다 (저 코드로는 big O가 큰듯) ``` #백준2869번 a,b,v=map(int,input().split()) left=v cou..

기술 2021.04.05

ACM호텔 - 백준10250번

#백준10250번 #몫과 나머지 연산자 이용 def reco(h,w,n): if n%h==0: room=(h*100)+((n//h)) else: room=((n%h)*100)+((n//h)+1) return room cases=int(input()) lst=[] for i in range(0,cases): h,w,n=map(int,input().split()) lst.append(reco(h,w,n)) for i in range(0,cases): print(lst.pop(0)) #백준10250번 다른풀이 #좌표 움직이는 방식 def reco(h,w,n): x=1 y=1 for i in range(0,n-1): if y

기술 2021.04.05
이전
1 ··· 3 4 5 6
다음
더보기
프로필사진

기술 공간. 딥러닝. 코드 AI.

기술 공간. 딥러닝. 코드 AI.

  • 분류 전체보기 (54)
    • 기술 (53)
    • 에세이 (1)
    • 아카이브 (0)

Tag

재설치, eo, 멀티부팅, 개발자, 알체라, 백준, 컴퓨터비전, ubuntu, 결심, 듀얼부팅, 윈도우, 영상인식, 리눅스, 기업가, AI, 프로그래머스, 창업,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바