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

17913번 - Workout 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB139770.000%

문제

Anton is so strong! All the programmers are in awe of his great biceps, wishing they could be just like him. The secret, he says, is to do a workout every single day, doing only bench press. However, you can not just go to the gym and hope for the best. No, to get biceps the size of watermelons (just like Anton) you need to know what particular weight you should work out with during each day.

Anton claims to use the following schedule. On his first day of training, Anton attempted to bench press $X$ micrograms. On each subsequent day, he used the following scheme. Assume that he on a particular day is due to lift $Y$ micrograms. If he succeeds, he will attempt to lift $Y + 25$ micrograms the next day. If he fails, he will instead reduce his attempted weight by 10ドル\%$. The resulting weight will be rounded down to the nearest multiple of 25ドル$ micrograms (the gym only provides weights that are multiples of 25ドル$ micrograms). Note that it is possible for this new weight to be 0ドル$.

You are a bit unsure if this is the scheme he is actually using. Maybe it is just a scam meant to waste the time of his lesser muscled ``friends''. As it happens, you know that Anton claims to have started bench pressing $K$ days ago, first attempting the weight $X$ micrograms. Today, he claims his schedule tells him to attempt lifting $Z$ micrograms. Your task is to determine if this could really be the case.

입력

The first and only line of input consists of three integers, separated by spaces:

  • the weight Anton claimed to have started with, $X$ (25ドル \le X$) micrograms,
  • the weight Anton claims he should lift today, $Z$ (25ドル \le Z$) micrograms, and
  • the number of days Anton has already worked out, $K$ (1ドル \le K$).

Both $X$ and $Z$ are divisble by 25ドル$.

출력

Output a single word: either liar if Anton could not possibly attempt the given weight today if he has followed his schedule, or biceps if his claims are consistent.

제한

  • $X, Z \le 10^{18}$
  • $K \le 10^{18}$

예제 입력 1

100 100 4

예제 출력 1

biceps

예제 입력 2

100 125 3

예제 출력 2

biceps

예제 입력 3

100 150 3

예제 출력 3

liar

힌트

출처

Contest > Swedish Coding Cup > Swedish Coding Cup Finals 2019 A번

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

출처

대학교 대회

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

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