아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Naming Wine Bottles

시간 제한2초메모리 제한1024 MB

요약
와인 병 n개의 용량이 주어질 때 같은 용량에는 같은 이름을 붙이도록 각 용량에 소문자 라틴 문자 이름을 정한다.
난이도

보통10점 중 4점

유형
해시맵, 문자열, 구현
정답자
아직 제출이 없습니다

문제

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 nn (1≤n≤10,0001 \le n \le 10\\,000)
  • On each of the following nn lines, the volume of a bottle vv (0.0≤v_i≤1040.0 \le v\_i \le 10^4) with up to 1010 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.

예제2

  1. 예제 1

    입력
    6
    15L
    0.88L
    1.0L
    1L
    1000L
    1024L
    
    예상 출력
    nebuchadnezzar
    hammurabi
    standard
    standard
    giganebriator
    gibinebriator
    
  2. 예제 2

    입력
    3
    0.03L
    0.031L
    0.03L
    
    예상 출력
    small
    smallish
    small