Ticket 4827
Problem 1665 -e
Submission 153476751
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
1
7
819 852 385 614 811 223 719 
20
1 4
3 5
1 7
6 7
6 7
3 5
5 7
1 4
1 3
1 5
3 5
1 7
3 5
1 6
4 6
3 5
2 5
5 7
3 7
2 4
Expected Output
886
879
479
735
735
879
735
886
887
827
879
479
879
479
767
879
879
735
479
886
Your Output
886
879
479
735
735
879
735
886
887
879
879
479
879
479
767
879
879
735
479
886
Difference
Generator Parameters
--n_high 7 --n_low 7 --q_high 20 --q_low 20 --t_high 1 --t_low 1 --val_high 1024 --val_low 0