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

30793번 - gahui and sousenkyo 3 다국어

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

문제

Gahui is watching the annual character election. After the election, The top 16 characters receive enormous benefits for one year. For that reason, fans vote passionately to get their favorite characters into the top 16. Remarkably, at least one Cinderella appears in every election, achieving an outstanding outcome.

Election results are announced twice: preliminary and final results. The vote count information for character x is as follows:

  • Character x obtained $p_x$ votes when announcing the preliminary result.
  • Character x obtained $r_x$ votes when announcing the final result.

$v_x$ is defined as $p_x$ divided by $r_x$. The type of character x is determined by the value $v_x$.

  • If $v_x \lt 0.2,ドル the type of character x is weak.
  • If 0ドル.2 \le v_x \lt 0.4,ドル the type of character x is normal.
  • If 0ドル.4 \le v_x \lt 0.6,ドル the type of character x is strong.
  • If 0ドル.6 \le v_x,ドル the type of character x is very strong.

Preliminary and final results of character x are given. Print the type of character x.

입력

$p_x$ (preliminary result) and $r_x$ (final result) are given, separated by space.

출력

Print the answer to the question.

제한

  • $p_x \le r_x$
  • 1ドル \le p_x \le 60,000円$
  • 1ドル \le r_x \le 250,000円$

예제 입력 1

19 100

예제 출력 1

weak

예제 입력 2

16 80

예제 출력 2

normal

예제 입력 3

1884 4710

예제 출력 3

strong

힌트

Who can foresee such an unexpected outcome if the final election result deviates significantly from the preliminary results?

출처

Contest > BOJ User Contest > 가희와 함께 하는 코딩 테스트 > 가희와 함께 하는 6회 코딩 테스트 C번

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

출처

대학교 대회

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

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