Alloy

AtCoder
IDabc212_a
Time2000ms
Memory256MB
Difficulty
Takahashi 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$. ## Constraints * $0 \leq A,B \leq 100$ * $1 \leq A+B$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $A$ $B$ [samples]
Samples
Input #1
50 50
Output #1
Alloy

We have $0 \lt A$ and $0 \lt B$, so the product is an alloy.
Input #2
100 0
Output #2
Gold

We have $0 \lt A$ and $B=0$, so the product is pure gold.
Input #3
0 100
Output #3
Silver

We have $A=0$ and $0 \lt B$, so the product is pure silver.
Input #4
100 2
Output #4
Alloy
API Response (JSON)
{
  "problem": {
    "name": "Alloy",
    "description": {
      "content": "Takahashi 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 prod",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc212_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Takahashi melted and mixed $A$ grams of gold and $B$ grams of silver $(0 \\leq A,B,\\ 0 \\lt A+B)$ to produce new metal.\nWhat metal did he produce: pure gold, pure silver, or an alloy?\nFormally, the prod...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments