Two Binary Strings Problem
题号:NC231129
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
64bit IO Format: %lld

题目描述

Given an integer n and two binary strings (denoted by A) and (denoted by B) of length n.

Define function:


We say an integer k is lucky, iff for each , holds.

For each integer , determine if it is lucky.

输入描述:

The first line contains one integer , denoting the number of the test cases.

For each test case:

The first line contains one integer , denoting the length of the two binary strings.

The second line contains one binary string A.

The third line contains one binary string B.

It is guaranteed that .

输出描述:

For each test case:

Output one line containing a binary string of length n, where iff i is lucky while iff i is not lucky.
示例1

输入

复制
2
5
11010
11000
8
11110000
11111100

输出

复制
01000
00001100