5563: Alloy合金(ABC212A)
内存限制:1024 MB
时间限制:2.000 S
评测方式:文本比较
命题人:
提交:1
解决:1
题目描述
Problem Statement:
Xiaoniu melted and mixed $A$ grams of gold and $B$ grams of silver $(0 \leq A,B,\ 0 \lt A+B)$ 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 $0 \lt A$ and $B=0$.
- Pure silver, if $A=0$ and $0 \lt B$.
- An alloy, if $0 \lt A$ and $0 \lt B$.
Xiaoniu melted and mixed $A$ grams of gold and $B$ grams of silver $(0 \leq A,B,\ 0 \lt A+B)$ 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 $0 \lt A$ and $B=0$.
- Pure silver, if $A=0$ and $0 \lt B$.
- An alloy, if $0 \lt A$ and $0 \lt B$.
小牛将 A 克黄金和 B 克白银熔化并混合,制造出了新的金属(0< A,B,0<A+B)。
他制造出的是纯金、纯银还是合金?
具体来说,金属的定义如下:
纯金,如果 $0 \lt A$ 且 $B=0$。
纯银,如果 $A=0$ 且 $0 \lt B$。
合金,如果 $0 \lt A$ 且 $0 \lt B$。
输入
A B
输出
If the product is pure gold, print `Gold`; if it is pure silver, print `Silver`; if it is an alloy, print `Alloy`.
如果是纯金,输出 Gold; 如果是纯银,输出 silver;如果是合金,输出 Alloy
样例输入 复制
50 50
样例输出 复制
Alloy
提示
Constraints:
- $0 \leq A,B \leq 100$
- $1 \leq A+B$
- All values in input are integers.
- $0 \leq A,B \leq 100$
- $1 \leq A+B$
- All values in input are integers.