B. MaratonIME challenges USPGameDev

Codeforces
IDCF10137B
Time2000ms
Memory256MB
Difficulty
English · Original
Formal · Original
Year after year, MaratonIME (group that authored this contest) and USPGameDev (game developing group at USP) fight epic clashes that last for centuries over which group will get each freshman to join them. This year, Russo (from MaratonIME) challenged Wil (from USPGameDev) to a dangerous match of darts. Each one of them has already thrown their darts at the bullseye, but they can't decide which one of them got closest to hitting the center of it. Each one of them claims to have won the match. You, as a fair freshman, decided to judge the clash yourself. Two points on the 2d plane are given, r, the point where Russo's dart hit, and w, the point where Wil's dart hit. If r is closest to the origin (0, 0) than w, Russo won and you should print out "Russo" (no quotes) and join MaratonIME. If w and r are equally close to the origin, there's a draw, you should print "Empate" (no quotes), which stands for "Draw" in portuguese, and join MaratonIME, because that was the agreed draw outcome. If w is closest to the origin than r, you should print "Wil" (no quotes) and join MaratonIME anyway, because it is the coolest group. On the first line of the input, a pair of integers xr and yr is given, the coordinates hit by Russo. On the second line another pair of integers xw and yw is given, the coordinates hit by Wil. Every coordinate is guaranteed not to exceed 10000 on absolute value, formally,  - 10000 ≤ xr, yr, xw, yw ≤ 10000. A single line containing "Russo", "Wil" or "Empate", acording to statement's instructions. ## Input On the first line of the input, a pair of integers xr and yr is given, the coordinates hit by Russo. On the second line another pair of integers xw and yw is given, the coordinates hit by Wil. Every coordinate is guaranteed not to exceed 10000 on absolute value, formally,  - 10000 ≤ xr, yr, xw, yw ≤ 10000. ## Output A single line containing "Russo", "Wil" or "Empate", acording to statement's instructions. [samples]
**Definitions** Let $ R = (x_r, y_r) \in \mathbb{Z}^2 $ be the coordinates of Russo's dart. Let $ W = (x_w, y_w) \in \mathbb{Z}^2 $ be the coordinates of Wil's dart. **Constraints** $ -10000 \le x_r, y_r, x_w, y_w \le 10000 $ **Objective** Compute squared distances to origin: $ d_R = x_r^2 + y_r^2 $, $ d_W = x_w^2 + y_w^2 $. Output: - "Russo" if $ d_R < d_W $, - "Wil" if $ d_R > d_W $, - "Empate" if $ d_R = d_W $.
API Response (JSON)
{
  "problem": {
    "name": "B. MaratonIME challenges USPGameDev",
    "description": {
      "content": "Year after year, MaratonIME (group that authored this contest) and USPGameDev (game developing group at USP) fight epic clashes that last for centuries over which group will get each freshman to join ",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF10137B"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Year after year, MaratonIME (group that authored this contest) and USPGameDev (game developing group at USP) fight epic clashes that last for centuries over which group will get each freshman to join ...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "**Definitions**  \nLet $ R = (x_r, y_r) \\in \\mathbb{Z}^2 $ be the coordinates of Russo's dart.  \nLet $ W = (x_w, y_w) \\in \\mathbb{Z}^2 $ be the coordinates of Wil's dart.  \n\n**Constraints**  \n$ -10000 ...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments