본문 바로가기

공돌이 공룡의 서재

검색하기
공돌이 공룡의 서재
프로필사진 구름위의공룡

  • 분류 전체보기 (50)
    • 코딩 (21)
      • 자료구조 (3)
      • 프로그래머스 (10)
      • opencv (7)
    • 딥러닝 (27)
      • Vision (9)
      • NLP (3)
      • NeRF (0)
      • Tracking (3)
      • Model (3)
      • 3D (4)
      • GAN (1)
    • 컴퓨터비전 (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   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
Tags
  • deep learning
  • reconstruction
  • OpenCV
  • level2
  • 파이썬
  • cv2
  • Object Detection
  • NLP
  • 딥러닝
  • Deeplearning
  • 3D
  • numpy
  • 임계처리
  • re-identification
  • 큐
  • transformer
  • attention
  • 알고리즘
  • Threshold
  • flame
  • 논문 구현
  • 자료구조
  • 프로그래머스
  • Object Tracking
  • center loss
  • Computer Vision
  • Python
  • point cloud
  • Knowledge Distillation
  • 스택
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록완전탐색 (1)

공돌이 공룡의 서재

[프로그래머스 Level 1] 모의고사 / 완전탐색 / 파이썬

def solution(answers): solver = [0, 0, 0] s1 = [1, 2, 3, 4, 5] s2 = [2, 1, 2, 3, 2, 4, 2, 5] s3 = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5] for i in range(len(answers)): if answers[i] == s1[i % len(s1)]: solver[0] += 1 if answers[i] == s2[i % len(s2)]: solver[1] += 1 if answers[i] == s3[i % len(s3)]: solver[2] += 1 answer = [] for i in range(len(solver)): if solver[i] == max(solver): answer.append(i + 1) r..

코딩/프로그래머스 2020. 7. 5. 20:47
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바