Ticket 15933
Problem 1711 -d
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
2
4 5
2 3
4 5
9 1
8 4
4 7
9 9
4 4
4 8
8 1
Expected Output
1100
0000
Generator Parameters
--m_high 9 --m_low 1 --n_high 9 --n_low 1 --p_high 9 --p_low 1 --t_high 2 --t_low 1 --x_high 9 --x_low 1