2 1 s 128 MB
Your program is to read from standard input. The input consists of T test cases. The number of test cases T is given in the first line of the input. Each test case consists of a line containing three integers, n, l, and r (1 ≤ l,r ≤ n ≤ 20), where n is the number of poles and (resp. r) is the number of poles that can be seen from the left(resp. right).
Your program is to write to standard output. Print exactly one line for each test case. The line should contain the number of arrangements of poles for the test case.
4 4 1 2 4 1 1 5 2 4 20 2 1
2 0 4 6402373705728000