F

AtCoder
IDsoundhound2018_summer_qual_a
Time2000ms
Memory256MB
Difficulty
You are given two integers $a$ and $b$. Determine if $a+b=15$ or $a\times b=15$ or neither holds. Note that $a+b=15$ and $a\times b=15$ do not hold at the same time. ## Constraints * $1 \leq a,b \leq 15$ * All values in input are integers. ## Input Input is given from Standard Input in the following format: $a$ $b$ [samples]
Samples
Input #1
4 11
Output #1
+

$4+11=15$.
Input #2
3 5
Output #2
*

$3\times 5=15$.
Input #3
1 1
Output #3
x

$1+1=2$ and $1\times 1=1$, neither of which is $15$.
API Response (JSON)
{
  "problem": {
    "name": "F",
    "description": {
      "content": "You are given two integers $a$ and $b$. Determine if $a+b=15$ or $a\\times b=15$ or neither holds. Note that $a+b=15$ and $a\\times b=15$ do not hold at the same time.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "soundhound2018_summer_qual_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given two integers $a$ and $b$. Determine if $a+b=15$ or $a\\times b=15$ or neither holds.\nNote that $a+b=15$ and $a\\times b=15$ do not hold at the same time.\n\n## Constraints\n\n*   $1 \\leq a,b \\...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments