출처

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=3&contestProbId=AWTaTDua3OoDFAVT&categoryId=AWTaTDua3OoDFAVT&categoryType=CODE&problemTitle=&orderBy=PASS_RATE&selectCodeLang=PYTHON&select-1=3&pageSize=10&pageIndex=5

과정

  1. 빵을 많이 사려면 적은 가격인 빵을 많이 사면 되므로
    x에 a,b중 작은 값을 저장
  2. res에 가지고 있는 돈 c에 x를 나눈 몫을 저장
  3. 테스트케이스 번호와 res를 출력

정답 코드

태그: ,

카테고리:

업데이트: