• Skip to primary navigation
  • Skip to content
  • Skip to footer
Sponge Note Sponge Note Do It
  • Home
  • Search
    1. Home
    2. /
    3. Algorithm
    4. /
    5. [프로그래머스] 예상 대진표

    Hyse

    기록하고 활용하자

    • South Korea
    • GitHub
    • 이메일
    • 📂 전체 글 수 139 개
    • About
    • Study
      • JPA 기초 (9)
      • JPA 활용 (6)
      • SpringDataJPA (5)
      • QueryDsl (5)
      • AWS (5)
      • Docker (2)
      • Security (1)
      • Spring (2)
      • RDBMS (1)
      • Network (1)
      • MSA (1)
      Algorithm
      • 알고리즘(91)
    정보처리기사
    • 정보처리기사(10)

    [프로그래머스] 예상 대진표

    June 21, 2023 less than 1 minute read

    On This Page

    • 파이썬

    문제링크

    while문 활용 a,b 값 비교하기

    파이썬

    def solution(n,a,b):
        answer = 0
        while a!=b:
            answer+=1
            a,b = (a+1)//2,(b+1)//2
        return answer
            
        
    

    카테고리: Algorithm

    업데이트: June 21, 2023

    공유하기

    Twitter Facebook LinkedIn
    이전 다음

    댓글남기기

    참고

    2023.09.17

    [프로그래머스] 덧칠하기

    2023.09.15

    [프로그래머스] 최소직사각형

    2023.09.13

    REST, REST API, RESTful?

    2023.09.11

    [백준] 10799번 쇠막대기

    • 팔로우:
    • GitHub
    • Feed
    © 2024 Hyse. Powered by Jekyll & Minimal Mistakes.