QOJ.ac

QOJ

実行時間制限: 1 s メモリ制限: 2048 MB 満点: 100

#7853. 给酒瓶命名

統計

葡萄酒是一门复杂的生意。仅装瓶这一环节就涵盖了标签设计艺术、真空密封物理学、玻璃成型工艺以及体积形状的微积分。

今天我们要处理的是文学问题:每种尺寸的葡萄酒瓶都有一个名字。你可能知道“标准”瓶的容量是 $0.75\text{L}$。你是否还知道 $15\text{L}$ 的瓶子被称为“Nebuchadnezzar”,而 $12\text{L}$ 的则是强大的“Balthazar”?

通常,葡萄酒瓶的尺寸是 $1.5\text{L}$ 的倍数。你还有一些非标准尺寸的瓶子,你也需要为它们创造出令人印象深刻的名字。请注意,任何两个相同尺寸的瓶子必须有相同的名字。

输入格式

  • 第一行包含瓶子的数量 $n$ ($1 \le n \le 10\,000$)。
  • 接下来的 $n$ 行,每行包含一个瓶子的体积 $v$ ($0.0 \le v_i \le 10^4$),小数点后最多有 $10$ 位数字,后跟一个大写字母“L”。

输出格式

对于给定的每一行,输出一个仅包含拉丁字母的小写单词,作为该尺寸瓶子的名称。

样例

样例输入 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

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.