Logo
(追記) (追記ここまで)

24247번 - King of cans 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB64262345.098%

문제

The informatics student Lisa at the University of Bergen, Norway, has spent way too much money. To make up for it, she has decided to recycle the empty cans she found in the reading hall. Since Lisa have been in Norway for a while now, she knows that the Norwegian government has a deposit-refund scheme to encourage recycling of soda bottles: when buying a bottle, the store will collect an extra 2ドル$ or 3ドル$ Norwegian kroner in deposit –- depending on bottle size –- for each soda bottle you buy. If someone returns an empty bottle to the store to be recycled, the deposit will be refunded to the redeemer. Hence, if Lisa manage to find a couple of hundred bottles left behind by wasteful students, it can quickly become surprisingly much money.

As an informatics student, Lisa naturally has some tendencies of OCD and today it kicks in hard. She will not take any receipt not being exactly 100ドル$ Norwegian kroner after recycling the soda. The question is this: what is the maximum amount of receipts equaling exactly 100ドル$ Norwegian kroner Lisa can get?

입력

The first and only line have two space-separated integers $x$ and $y,ドル where 0ドル \leq x \leq 10^{4}$ is the number of bottles whose deposit worth is 2ドル$ Norwegian kroner, and 0ドル \leq y \leq 10^{4}$ is the number of bottles whose deposit is worth 3ドル$ Norwegian kroner.

출력

Your program should output a single integer, the maximum number of refund receipts Lisa can get which each total exactly 100ドル$ Norwegian kroner.

제한

예제 입력 1

5 30

예제 출력 1

1

예제 입력 2

49 1

예제 출력 2

0

예제 입력 3

0 100

예제 출력 3

0

힌트

출처

Contest > Bergen Open > Bergen Open 2021 K번

  • 문제를 만든 사람: Brigt Arve Toppe Håvardstun
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /