1894.Twisted Circuit

Time Limit: 1s Memory Limit: 256MB

1894_1.png

Input Format(From the terminal/stdin)

The input consists of four lines, each line containing a single digit 0 or 1.

Output Format(To the terminal/stdout)

Output a single digit, 0 or 1.

Sample Input

Copy
0
1
1
0
 \n
 \n
 \n
 \n

Sample Output

Copy
0
 \n

Submit

请先 登录

© 2025 FAQs