Ticket 5504
Problem 1665 -e
Submission 154228895
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
2
175 982 
7
1 2
1 2
1 2
1 2
1 2
1 2
1 2
8
858 753 341 739 426 341 959 888 
9
1 2
4 8
4 8
3 4
2 7
4 5
1 2
5 6
4 7
Expected Output
1023
1023
1023
1023
1023
1023
1023
1019
511
511
1015
341
1003
1019
511
511
Your Output
1023
1023
1023
1023
1023
1023
1023
1019
959
959
1015
341
1003
1019
1073741823
959
Difference
Generator Parameters
--n_high 9 --n_low 2 --q_high 9 --q_low 1 --t_high 2 --t_low 1 --val_high 1023 --val_low 0