Anyway Takahashi

AtCoder
IDabc269_a
Time2000ms
Memory256MB
Difficulty
You are given integers $a$, $b$, $c$, and $d$. Print two lines as follows. The first line should contain the result of calculating $(a + b) \times (c - d)$ as an integer. The second line should contain `Takahashi`, regardless of the input. ## Constraints * $-100 \leq a, b, c, d \leq 100$ * $a$, $b$, $c$, and $d$ are integers. ## Input The input is given from Standard Input in the following format: $a$ $b$ $c$ $d$ [samples]
Samples
Input #1
1 2 5 3
Output #1
6
Takahashi

We have $(1 + 2) \times(5 - 3) = 3 \times 2 = 6$, so the first line should contain $6$.  
The second line should contain `Takahashi`. Lowercasing the first character or incorrect spelling will not be accepted, so be careful.
Input #2
10 -20 30 -40
Output #2
\-700
Takahashi

The input or output may contain negative numbers.
Input #3
100 100 100 -100
Output #3
40000
Takahashi
API Response (JSON)
{
  "problem": {
    "name": "Anyway Takahashi",
    "description": {
      "content": "You are given integers $a$, $b$, $c$, and $d$. Print two lines as follows. The first line should contain the result of calculating $(a + b) \\times (c - d)$ as an integer.   The second line should cont",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc269_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given integers $a$, $b$, $c$, and $d$. Print two lines as follows.\nThe first line should contain the result of calculating $(a + b) \\times (c - d)$ as an integer.  \nThe second line should cont...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments