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

30571번 - Naming Wine Bottles 스페셜 저지다국어

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

문제

Wine is a sophisticated business. Bottling alone encompasses the art of label design, the physics of vacuum sealing, the craft of glassforming, and the calculus of volumetric shapes.

Today we will deal with literature: every size of wine bottle has a name. You may know that a “Standard” bottle holds 0.75L. Did you also know that a 15L bottle is a “Nebuchadnezzar”, and a 12L is a mighty “Balthazar”?

Usually wine bottle sizes come in multiples of 1.5L. You have some other bottles in non-standard sizes and you will need to create impressive names for them as well. Note that any two bottles of the same size must have consistent names.

입력

  • On the first line, the number of bottles $n$ (1ドル \le n \le 10,000円$)
  • On each of the following $n$ lines, the volume of a bottle $v$ (0ドル.0 \le v_i \le 10^4$) with up to 10ドル$ digits after the decimal point, followed by an uppercase letter "L"

출력

For each given line, output one lower-case word, with Latin letters only, giving a name for this size of bottle.

제한

예제 입력 1

6
15L
0.88L
1.0L
1L
1000L
1024L

예제 출력 1

nebuchadnezzar
hammurabi
standard
standard
giganebriator
gibinebriator

예제 입력 2

3
0.03L
0.031L
0.03L

예제 출력 2

small
smallish
small

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > The UK & Ireland Programming Contest > UKIEPC 2023 N번

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

출처

대학교 대회

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

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