E. Twisted Circuit

Codeforces
IDCF784E
Time2000ms
Memory64MB
Difficulty
brute forceimplementation
English · Original
Chinese · Translation
Formal · Original
<center>![image](https://espresso.codeforces.com/8f29dfb253ce9cd368f7ecc562d7be12eea631a3.png)</center> ## Input The input consists of four lines, each line containing a single digit 0 or 1. ## Output Output a single digit, 0 or 1. [samples]
输入由四行组成,每行包含一个数字 0 或 1。 输出一个数字,0 或 1。 ## Input 输入由四行组成,每行包含一个数字 0 或 1。 ## Output 输出一个数字,0 或 1。 [samples]
Let $ a, b, c, d \in \{0, 1\} $ be the four input bits. Output: $ f(a, b, c, d) \in \{0, 1\} $, where $ f $ is an unknown Boolean function defined by the problem's unspecified logic.
Samples
Input #1
0
1
1
0
Output #1
0
API Response (JSON)
{
  "problem": {
    "name": "E. Twisted Circuit",
    "description": {
      "content": "<center>![image](https://espresso.codeforces.com/8f29dfb253ce9cd368f7ecc562d7be12eea631a3.png)</center>",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 65536
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF784E"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "<center>![image](https://espresso.codeforces.com/8f29dfb253ce9cd368f7ecc562d7be12eea631a3.png)</center>\n\n## Input\n\nThe input consists of four lines, each line containing a single digit 0 or 1.\n\n## Out...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "输入由四行组成,每行包含一个数字 0 或 1。\n\n输出一个数字,0 或 1。\n\n## Input\n\n输入由四行组成,每行包含一个数字 0 或 1。\n\n## Output\n\n输出一个数字,0 或 1。\n\n[samples]...",
      "is_translate": true,
      "language": "Chinese"
    },
    {
      "statement_type": "Markdown",
      "content": "Let $ a, b, c, d \\in \\{0, 1\\} $ be the four input bits.\n\nOutput: $ f(a, b, c, d) \\in \\{0, 1\\} $, where $ f $ is an unknown Boolean function defined by the problem's unspecified logic....",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments