#abc212a. A - Alloy
A - Alloy
Score : points
问题描述
Takahashi 将 克黄金和 克白银 融化并混合,以制造新的金属。
他所生产的金属是什么:纯金、纯银还是合金?
正式地,产品的定义如下:
- 若 且 ,则为纯金。
- 若 且 ,则为纯银。
- 若 且 ,则为合金。
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
Takahashi melted and mixed grams of gold and grams of silver to produce new metal.
What metal did he produce: pure gold, pure silver, or an alloy?
Formally, the product is called as follows.
- Pure gold, if and .
- Pure silver, if and .
- An alloy, if and .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
If the product is pure gold, print Gold
; if it is pure silver, print Silver
; if it is an alloy, print Alloy
.
Sample Input 1
50 50
Sample Output 1
Alloy
We have and , so the product is an alloy.
Sample Input 2
100 0
Sample Output 2
Gold
We have and , so the product is pure gold.
Sample Input 3
0 100
Sample Output 3
Silver
We have and , so the product is pure silver.
Sample Input 4
100 2
Sample Output 4
Alloy
update @ 2024/3/10 09:26:43