study_record

  • 홈
  • 태그
  • 방명록

19637 1

[Python] 19637번 IF문 좀 대신 써줘

✏️ 문제문제 파악 알고리즘이분 탐색  코드import sysinput = sys.stdin.readlinen, m = map(int, input().split())power = []for i in range(n): a, b = input().split() power.append([a, int(b)])for j in range(m): char = int(input()) start, end = 0, len(power) - 1 while start power[mid][1]: start = mid + 1 else: end = mid - 1 print(power[start][0])

PS/백준 2024.08.17
이전
1
다음
더보기
프로필사진

study_record

이전 블로그 https://velog.io/@ro_sie/posts

  • Study (241)
    • CS (25)
      • 네트워크 (2)
      • 컴퓨터구조 (9)
      • 운영체제 (4)
      • 자료구조 (0)
      • 소프트웨어 공학 (0)
    • 알고리즘 (7)
    • 프론트엔드 (29)
      • JavaScript (3)
      • React (17)
      • HTML (0)
      • CSS (1)
      • TypeScript (4)
      • NextJS (3)
    • PS (169)
      • 백준 (130)
      • 프로그래머스 (39)
    • Python (4)
    • Web (5)

Tag

hooks, react, 너비 우선 탐색, 이진 탐색, CS, 정렬, programmers, DFS, 프로그래머스, 백준, BOJ, Python, DP, 다이나믹 프로그래밍, 이분 탐색, 그리디, 에라토스테네스의 체, BFS, 깊이 우선 탐색, 파이썬,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바