The Best Problem of 2021
Time limit2sMemory limit1024 MB
Given a set B of n binary strings of length m and a binary number X, the task is to find an answer from B and X, though the output format is not stated.
- Level
Medium7 of 10
- Topics
- Bit manipulation, Matrix, Math
- Solved
- No attempts yet
Problem
The year is 2021. People still care about COVID, NNSU just won ICPC 2020, and he is already crazy, we just don't know yet how much. We are looking for problems for the SnackDown finals, and 7dan suggested this one. For some reason, we decided not to use it then, but internally it became known as The Best Problem of 2021.
Input
The first line contains two integers and (): the size of and the length of the binary numbers. All elements of and the number are given in binary with exactly digits (leading zeroes are allowed).
Each of the next lines contains a binary string of length that represents an element of .
The last line contains a binary string of length that represents the number .
Output
You'll figure it out.